コード例 #1
0
 private static void Process(MessageSyncFaction syncEntity)
 {
     if (MyAPIGateway.Multiplayer.MultiplayerActive)
         ConnectionHelper.SendMessageToServer(syncEntity);
     else
         syncEntity.CommonProcess(syncEntity.SyncType, syncEntity.FactionId, syncEntity.PlayerId);
 }
コード例 #2
0
 private static void Process(MessageSyncFaction syncEntity)
 {
     if (MyAPIGateway.Multiplayer.MultiplayerActive && !MyAPIGateway.Multiplayer.IsServer)
     {
         ConnectionHelper.SendMessageToServer(syncEntity);
     }
     else
     {
         syncEntity.CommonProcess(syncEntity.SyncType, syncEntity.FactionId, syncEntity.PlayerId);
     }
 }