public static PersistenceController getInstance()
 {
     if (persistenceController == null)
     {
         persistenceController = new PersistenceController();
     }
     return persistenceController;
 }
Exemplo n.º 2
0
 private DomainController()
 {
     playerInfo = new string[255];
     loggedIn = false;
     friendList = new List<Account>();
     pendingList = new List<Account>();
     FullyKnownAccounts = new List<Account>();
     onlineIdList = new List<int>();
     this.IncommingChatMessage = new Queue<string>();
     this.IncommingLobbyMessage = new Queue<string>();
     OutgoingHomeQueue = new Queue<string>();
     IncommingHomeQueue = new Queue<string>();
     myGuild = null;
     persistenceController = PersistenceController.getInstance();
     channelList.Add(new ChatChannel(true, 0, "Broadcast"));
     this.startThreads();
 }
Exemplo n.º 3
0
        private GuiController()
        {
            fpsCounter = false;
            debugQueue = new Queue<string>();
            receiveQueue = new Queue<string>();
            LocalizedStrings.SetLanguage("en");
            DomainController.getInstance().setMode(-1);
            domainController = DomainController.getInstance();
            domainController.SetNetworkController();
            persistenceController = PersistenceController.getInstance();
            persistenceController.getLoginServer();

            screen = new Vector2(Screen.width, Screen.height); //width is x, height is y
            scale = new Vector2(screen.x / optimalWidth, screen.y / optimalHeight);

            SetDebugText("Profit, het programma start!");
            activeChannel = 0;
        }