コード例 #1
0
ファイル: GameManager.cs プロジェクト: jacko12549/EvoS
 private void OnAssetLoadingProgress(GamePlayer player, AssetsLoadingProgress msg)
 {
     // Send a loading progress message to all players
     foreach (int playerId in GamePlayersByPlayerId.Keys)
     {
         GamePlayer humanplayer = GetGamePlayerByPlayerId(playerId);
         if (player.PlayerId != humanplayer.PlayerId)
         {
             //Log.Print(LogType.Debug, $"sending loading notification to {humanplayer.PlayerInfo.GetHandle()} from {player.PlayerInfo.GetHandle()}");
             humanplayer.Connection.Send((short)MyMsgType.ServerAssetsLoadingProgressUpdate, msg);
         }
     }
 }
コード例 #2
0
ファイル: GameManager.cs プロジェクト: LimitlessRegret/EvoS
 private void OnAssetLoadingProgress(GamePlayer player, AssetsLoadingProgress msg)
 {
     // TODO should send to all
     player.Connection.Send(62, msg);
 }