void ISessionEventListener.OnSessionEnded() { sessionControl = null; control = null; playerHelper = null; cardHelper = null; }
void IPlayerSessionEventListener.OnJoinedGame(IPlayerControl control) { this.control = control; cardHelper = new CardHelper(control); switch(control.Game.Players.Count) { case 2: playerHelper = new TwoPlayersPlayerHelper(control); break; case 3: playerHelper = new ThreePlayersPlayerHelper(control); break; default: playerHelper = new StandardPlayerHelper(control); break; } triedCards = new List<int>(); triedAbilities = new List<CharacterType>(); }
void ISessionEventListener.OnGameEnded() { control = null; playerHelper = null; cardHelper = null; }