public void AddPlayer(PlayerCarac carac, ActorRTInfo info, NetConnection co) { // Container creation Player player = new Player(); player.Carac = carac; player.Info = info; if (co != null) { player.Connection = co; co.Tag = carac.ActorID; } player.score = new PlayerScore(); // And finally add it to our list List.Add(player.Carac.ActorID, player); }
public void MsgJoinConversationPlayer(Player player, bool newplayer) { PlayerCarac = player.Carac; ActorInfo = player.Info; Param2 = newplayer; MsgType = BBMsgType.JOIN_CONVERSATION; }
public void MsgAddPlayer(Player player, bool newplayer) { PlayerCarac = player.Carac; ActorInfo = player.Info; Param2 = newplayer; MsgType = BBMsgType.ADD_PLAYER; }