Пример #1
0
        static void CreatePlayers()
        {
            foreach (var id in playersIdList)
            {
                NPCAI player = new NPCAI(_mechanicEngine, new Vector(), id);

                _mechanicEngine.AddPlayer(player);
                _eventProvider.AddPlayer(player);
            }
        }
 public void AddPlayer(NPCAI player)
 {
     _playersProxies.Add(player.PlayerId, new ServerProxy(player.PlayerId, _serverUrl));
 }
 public void AddPlayer(NPCAI player)
 {
     PlayerEvents.TryAdd(player.CharacterId, new InputEvent());
     Players.TryAdd(player.PlayerId, player);
 }