Exemplo n.º 1
0
        public static ClientList LoadClients(string file)
        {
            ClientList cl = ContentHandler.Load <ClientList>(file);

            cl.CreateDict();
            return(cl);
        }
Exemplo n.º 2
0
        static void Main()
        {
            Window = new RenderWindow(new VideoMode(WindowWidth, WindowHeight), WindowName);
            Window.SetVerticalSyncEnabled(VerticalSyncEnabled);
            Window.SetFramerateLimit(60);
            Window.KeyPressed += Window_KeyPressed;

            ContentHandler.Load();

            eventHandler = new EventHandler(Window);

            gameHandler = new GameHandler(GameBoardSize);

            while (Window.IsOpen)
            {
                Window.DispatchEvents();
                gameHandler.Update();
                Window.Clear(ClearColor);
                gameHandler.Draw();
                Window.Display();
            }
        }