Example #1
0
    private void SwitchToActiveState()
    {
        m_glsGameState = GameLoopState.ACTIVE;

        //set start time and tick
        m_fTimeSinceLastSim = 0;
        m_iSimTick          = 0;

        //set player count
        m_playerCount = m_ntcNetworkConnection.ActiveConnectionCount() + 1;

        SetupSimulation();

        //reset all ticks
        m_ntcNetworkConnection.TransmitPacketToAll(new ResetTickCountPacket());
    }