Example #1
0
        public Server()
        {
            netServer = new Net.Server();
            netServer.Start();

            game = new Game(netServer);
        }
Example #2
0
        public Game(Net.Server netServer)
        {
            this.netServer = netServer;

            world             = new World(this);
            controller        = new GameNS.Controllers.Adventure(this);
            players           = new Dictionary <ClientId, Player>();
            gameSnapshotCache = new GameSnapshotCache(world);
        }