Esempio n. 1
0
        public static void verifyNextPlayerInQueue()
        {
            if (Provider.pending.Count < 1)
            {
                return;
            }
            if (Provider.clients.Count - Dummy.Instance.Dummies.Count >= Provider.maxPlayers)
            {
                return;
            }
            SteamPending steamPending = Provider.pending[0];

            if (steamPending.hasSentVerifyPacket)
            {
                return;
            }
            steamPending.sendVerifyPacket();
        }
Esempio n. 2
0
        public static bool Prefix()
        {
            if (Provider.pending.Count < 1)
            {
                return(false);
            }
            if (Provider.clients.Count - Dummy.Instance.Dummies.Count >= Provider.maxPlayers)
            {
                return(false);
            }
            SteamPending steamPending = Provider.pending[0];

            if (steamPending.hasSentVerifyPacket)
            {
                return(false);
            }
            steamPending.sendVerifyPacket();
            return(false);
        }