public void SendNewPlayerRequest(string gameId, AcePlayer newPlayer) { logger.Info($"SendNewPlayerRequest(): {SID(newPlayer?.PlayerId)}"); AceApian apian = ApianInstances[gameId] as AceApian; apian.SendNewPlayerRequest(newPlayer); }
protected AceAppCore CreateCorePair(AceGameInfo gameInfo) { // Create gameinstance and ApianInstance AceAppCore appCore = new AceAppCore(); AceApian apian = AceApianFactory.Create(gameInfo.GroupType, appl.aceGameNet, appCore); return(appCore); }
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); }
public async Task <PeerJoinedGroupData> CreateAndJoinGameAsync(AceGameInfo gameInfo, AceApian apian, string localDataJson) { return(await base.CreateAndJoinGroupAsync(gameInfo, apian, localDataJson)); }
public void CreateAndJoinGame(AceGameInfo gameInfo, AceApian apian, string localDataJson) { base.CreateAndJoinGroup(gameInfo, apian, localDataJson); }
public async Task <PeerJoinedGroupData> JoinExistingGameAsync(AceGameInfo gameInfo, AceApian apian, string localDataJson) { return(await base.JoinExistingGroupAsync(gameInfo, apian, localDataJson)); }