Veilheim/Map/SharedMapSystem.cs
/// <summary>
///     RPC to receive new exploration data from client
/// </summary>
/// <param name="sender"></param>
/// <param name="mapData"></param>
RPC to receive new exploration data from client
RPC to receive new exploration data from client
public static void RPC_Veilheim_ReceiveExploration_OnExplore(long sender, ZPackage mapData)
        {
            if (mapData == null)
            {
                return;
            }
            if (ZNet.instance.IsServerInstance())
            {
                var numberOfEntries = mapData.ReadInt();
                Logger.LogInfo($"Received exploration diff data from client #{sender}, {numberOfEntries} items");
                while (numberOfEntries > 0)
                {
                    var toExplore = mapData.ReadInt();
                    Minimap.instance.m_explored[toExplore] = true;
                    numberOfEntries--;
                }
            }
        }
public static void RPC_Veilheim_ReceiveExploration_OnExplore ( long sender , ZPackage mapData ) { if ( mapData == null ) { return ; } if ( ZNet . instance . IsServerInstance ( ) ) { var numberOfEntries = mapData . ReadInt ( ) ; Logger . LogInfo ( $" Received exploration diff data from client # { sender } ,  { numberOfEntries }  items " ) ; while ( numberOfEntries > 0 ) { var toExplore = mapData . ReadInt ( ) ; Minimap . instance . m_explored [ toExplore ] = true ; numberOfEntries -- ; } } }
RPC to receive new exploration data from client
RPC to receive new exploration data from client
sender
long
None
mapData
ZPackage
None