Ejemplo n.º 1
0
    void CmdConnect(string[] args)
    {
        // Special hack to allow "connect a.b.c.d" as shorthand
        if (m_gameLoops.Count == 0)
        {
            RequestGameLoop(typeof(ClientGameLoop), args);
            Console.s_PendingCommandsWaitForFrames = 1;
            return;
        }

        ClientGameLoop     clientGameLoop     = GetGameLoop <ClientGameLoop>();
        ThinClientGameLoop thinClientGameLoop = GetGameLoop <ThinClientGameLoop>();

        if (clientGameLoop != null)
        {
            clientGameLoop.CmdConnect(args);
        }
        else if (thinClientGameLoop != null)
        {
            thinClientGameLoop.CmdConnect(args);
        }
        else
        {
            GameDebug.Log("Cannot connect from current gamemode");
        }
    }
Ejemplo n.º 2
0
    void CmdStartMatchMake(string[] args)
    {
        // Special hack to allow "connect a.b.c.d" as shorthand
        if (m_gameLoops.Count == 0)
        {
            RequestGameLoop(typeof(ClientGameLoop), args);
            Console.s_PendingCommandsWaitForFrames = 1;
            return;
        }

        ClientGameLoop     clientGameLoop     = GetGameLoop <ClientGameLoop>();
        ThinClientGameLoop thinClientGameLoop = GetGameLoop <ThinClientGameLoop>();
    }
Ejemplo n.º 3
0
 public ClientGameLoop()
 {
     mInstance = this;
 }