示例#1
0
 public UsMain(bool LogRemotely, bool LogIntoFile, bool InGameGui)
 {
     Application.set_runInBackground(true);
     this._logServ = new LogService(LogIntoFile, -1, true);
     this._test    = new utest();
     if (LogRemotely)
     {
         this._logServ.LogTargets += new LogTargetHandler(this.LogTarget_Remotely);
     }
     UsNet.Instance = new UsNet();
     UsMain_NetHandlers.Instance = new UsMain_NetHandlers(UsNet.Instance.CmdExecutor);
     UsvConsole.Instance         = new UsvConsole();
     GameUtil.Log("on_level loaded.", (object[])Array.Empty <object>());
     GameInterface.Instance.Init();
     this._inGameGui = InGameGui;
 }
示例#2
0
    public UsMain(bool LogRemotely, bool LogIntoFile, bool InGameGui)
    {
        Application.runInBackground = true;

        _logServ = new LogService(LogIntoFile, -1, true);

        _test = new utest();

        if (LogRemotely)
        {
            _logServ.LogTargets += LogTarget_Remotely;
        }

        UsNet.Instance = new UsNet();
        UsMain_NetHandlers.Instance = new UsMain_NetHandlers(UsNet.Instance.CmdExecutor);
        UsvConsole.Instance         = new UsvConsole();

        GameUtil.Log("on_level loaded.");
        GameInterface.Instance.Init();

        _inGameGui = InGameGui;
    }
示例#3
0
    public UsMain(bool LogRemotely, bool LogIntoFile, bool InGameGui)
    {
        Application.runInBackground = true;

        _logServ = new LogService(LogIntoFile, -1, true);

        _test = new utest();

        if (LogRemotely)
        {
            _logServ.LogTargets += LogTarget_Remotely;
        }

        UsNet.Instance = new UsNet(_serverPort);

        UsMain_NetHandlers.Instance = new UsMain_NetHandlers(UsNet.Instance.CmdExecutor);
        UsvConsole.Instance = new UsvConsole();

        GameUtil.Log("on_level loaded.");
        GameInterface.Instance.Init();

        _inGameGui = InGameGui;
    }