public GameServer(int Servercode) { this.Servercode = Servercode; ServerTime = new Stopwatch(); Playerno_Pool = new RandomPool(1, 5); calculate.setCallback(cal); calculate.setInterval(10); calculate.Start(); }
private MasterServer() { ServerCodePool = new RandomPool(1000, 9999); PORT = 5252; PacketManager.init(1000); ServerList = new List <GameServer>(); socketConnecter = new SocketConnecter(PORT); socketConnecter.callback_connected += newClient; socketConnecter.Serverinit(); Server_generate(); }