Exemplo n.º 1
0
        public void SendNewPlayerRequest(string gameId, AcePlayer newPlayer)
        {
            logger.Info($"SendNewPlayerRequest(): {SID(newPlayer?.PlayerId)}");
            AceApian apian = ApianInstances[gameId] as AceApian;

            apian.SendNewPlayerRequest(newPlayer);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public async Task <PeerJoinedGroupData> CreateAndJoinGameAsync(AceGameInfo gameInfo, AceApian apian, string localDataJson)
 {
     return(await base.CreateAndJoinGroupAsync(gameInfo, apian, localDataJson));
 }
Exemplo n.º 5
0
 public void CreateAndJoinGame(AceGameInfo gameInfo, AceApian apian, string localDataJson)
 {
     base.CreateAndJoinGroup(gameInfo, apian, localDataJson);
 }
Exemplo n.º 6
0
 public async Task <PeerJoinedGroupData> JoinExistingGameAsync(AceGameInfo gameInfo, AceApian apian, string localDataJson)
 {
     return(await base.JoinExistingGroupAsync(gameInfo, apian, localDataJson));
 }