public void Init(IRenderer renderer, IClientSettings clientSettings)
        {
            Renderer       = (WebRenderer)renderer;
            ClientSettings = clientSettings;
            ScreenManager  = new WebScreenManager(Renderer, this);
            Game.InitScreens(renderer, ScreenManager);

            SocketManager = new WebSocketManager();
            Game.InitSocketManager(SocketManager);
        }
Exemple #2
0
        public WebLayer(WebRenderer renderer, int width, int height, ILayout layout)
        {
            this.renderer     = renderer;
            this.width        = width;
            this.height       = height;
            Layout            = layout;
            CanvasInformation = CanvasInformation.Create(width, height);
            settingsStack     = new List <WebContextSettings>();

            settingsStack.Add(new WebContextSettings());
        }
Exemple #3
0
 public WebScreenManager(WebRenderer renderer, IClient client)
 {
     Renderer   = renderer;
     Client     = client;
     WebScreens = new List <WebScreen>();
 }