Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("server");
            NetworkServer server = new NetworkServer();
            server.Start();

            var sl = new ServerLevel(server);
            var game = new Game();
            Game.Zoom = 0.2f;
            game.SetLevels(new [] {sl});
            game.Setup();
            game.Run();
        }
Ejemplo n.º 2
0
 public ServerLevel(NetworkServer _server)
 {
     server = _server;
     server.World.GangsterAdded += HandleVisageGangsterAdded;
     server.World.GangsterRemoved += HandleVisageGangsterRemoved;
 }