public Player(Game game, YGOClient client) { Game = game; Type = (int)PlayerType.Undefined; State = PlayerState.None; _client = client; }
public Player(Game game, CoreClient client) { Game = game; Type = (int)PlayerType.Undefined; State = PlayerState.None; _client = client; TurnSkip = 0; }
public void Start() { if (IsRunning) return; Game = new Game(this, Config); try { _listener = new TcpListener(IPAddress.Any, Config.Port); _listener.Start(); IsRunning = true; IsListening = true; } catch (Exception) { //ignore } }
public void Start() { if (IsRunning) return; Addons = new AddonsManager(); Game = new Game(this); Addons.Init(Game); try { _listener = new TcpListener(IPAddress.Any, Config.GetInt("Port", DEFAULT_PORT)); _listener.Start(); IsRunning = true; IsListening = true; Game.Start(); } catch (Exception) { //ignore } }
public GameAnalyser(Game game) { Game = game; }
public void Init(Game game) { // TODO find a way to load specific addons Addons.Add(new Addons.StandardStreamProtocol(game)); }