public GameBehavior(AIGameClient game) { Game = game; Connection = game.Connection; _packets = new Dictionary <StocMessage, Action <GameServerPacket> >(); _messages = new Dictionary <GameMessage, Action <GameServerPacket> >(); RegisterPackets(); _room = new Room(); _duel = new Duel(); _ai = new GameAI(Game, _duel); _ai.Executor = DecksManager.Instantiate(_ai, _duel); Deck = Deck.Load(_ai.Executor.Deck); }
public GameBehavior(GameClient game) { Game = game; Connection = game.Connection; _hand = game.Hand; _packets = new Dictionary <StocMessage, Action <BinaryReader> >(); _messages = new Dictionary <GameMessage, Action <BinaryReader> >(); RegisterPackets(); _room = new Room(); _duel = new Duel(); _ai = new GameAI(Game, _duel); _ai.Executor = DecksManager.Instantiate(_ai, _duel); Deck = Deck.Load(_ai.Executor.Deck); _select_hint = 0; }