Пример #1
0
        public void Start()
        {
            Instance     = this;
            AsyncTasks   = new Queue <Action>(300);
            FrameActions = new MapList <Action>(300);

            Config.InitConfig();
            DataService.LoadData();
            TextureService.LoadTextures();
            DeckService.LoadForbiddenLists();

            imgSelector    = new Lazy <ImageSelector>();
            tglSelector    = new Lazy <ToggleSelector>();
            confirmWindow  = new Lazy <ConfirmWindow>();
            annWindow      = new Lazy <AnnounceWindow>();
            opSelector     = new Lazy <OptionSelector>();
            inputBox       = new Lazy <InputBox>();
            hint           = new Lazy <HintBox>();
            lazyDescriptor = new Lazy <CardDescriptor>();
            lazyChat       = new Lazy <ChatWindow>();

            ToolStrip    = new ToolStrip();
            DuelWindow   = new DuelWindow();
            DeckBuilder  = new DeckBuilder();
            RoomWindow   = new RoomWindow();
            Menu         = new MainMenu();
            ConfigWindow = new ConfigWindow();
            ServerWindow = new ServerWindow();

            Field = new Field();
            Duel  = new ClientDuel();

            Menu.Show();
        }