Пример #1
0
        public void SendNewPlayerRequest(string gameId, AcePlayer newPlayer)
        {
            logger.Info($"SendNewPlayerRequest(): {SID(newPlayer?.PlayerId)}");
            AceApian apian = ApianInstances[gameId] as AceApian;

            apian.SendNewPlayerRequest(newPlayer);
        }
Пример #2
0
        protected AceAppCore CreateCorePair(AceGameInfo gameInfo)
        {
            // Create gameinstance and ApianInstance
            AceAppCore appCore = new AceAppCore();
            AceApian   apian   = AceApianFactory.Create(gameInfo.GroupType, appl.aceGameNet, appCore);

            return(appCore);
        }
Пример #3
0
        public void JoinExistingGame(AceGameInfo gameInfo, AceApian apian, string localDataJson)
        {
            string netName = p2p.GetMainChannel()?.Name;

            if (netName == null)
            {
                logger.Error($"JoinExistingGame() - Must join network first"); // TODO: probably ought to assert? Can this be recoverable?
                return;
            }

            base.JoinExistingGroup(gameInfo, apian, localDataJson);
        }
Пример #4
0
 public async Task <PeerJoinedGroupData> CreateAndJoinGameAsync(AceGameInfo gameInfo, AceApian apian, string localDataJson)
 {
     return(await base.CreateAndJoinGroupAsync(gameInfo, apian, localDataJson));
 }
Пример #5
0
 public void CreateAndJoinGame(AceGameInfo gameInfo, AceApian apian, string localDataJson)
 {
     base.CreateAndJoinGroup(gameInfo, apian, localDataJson);
 }
Пример #6
0
 public async Task <PeerJoinedGroupData> JoinExistingGameAsync(AceGameInfo gameInfo, AceApian apian, string localDataJson)
 {
     return(await base.JoinExistingGroupAsync(gameInfo, apian, localDataJson));
 }