Inheritance: IGame
示例#1
0
文件: Player.cs 项目: IceYGO/ygosharp
 public Player(Game game, YGOClient client)
 {
     Game = game;
     Type = (int)PlayerType.Undefined;
     State = PlayerState.None;
     _client = client;
 }
示例#2
0
文件: Player.cs 项目: mycard/ygosharp
 public Player(Game game, CoreClient client)
 {
     Game = game;
     Type = (int)PlayerType.Undefined;
     State = PlayerState.None;
     _client = client;
     TurnSkip = 0;
 }
示例#3
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
     }
 }
示例#4
0
 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
     }
 }
示例#5
0
 public GameAnalyser(Game game)
 {
     Game = game;
 }
示例#6
0
        public void Init(Game game)
        {
            // TODO find a way to load specific addons

            Addons.Add(new Addons.StandardStreamProtocol(game));
        }