Exemplo n.º 1
0
        public void RemoveAllCallbacks()
        {
            if (authorityCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in authorityCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                authorityCallbackToCallbackKey.Clear();
            }

            if (updateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in updateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                updateCallbackToCallbackKey.Clear();
            }


            if (rootUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in rootUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                rootUpdateCallbackToCallbackKey.Clear();
            }
        }
        public void RemoveAllCallbacks()
        {
            if (authorityCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in authorityCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                authorityCallbackToCallbackKey.Clear();
            }

            if (updateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in updateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                updateCallbackToCallbackKey.Clear();
            }


            if (workerIdUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in workerIdUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                workerIdUpdateCallbackToCallbackKey.Clear();
            }

            if (workerTypeUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in workerTypeUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                workerTypeUpdateCallbackToCallbackKey.Clear();
            }

            if (connectionUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in connectionUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                connectionUpdateCallbackToCallbackKey.Clear();
            }
        }
Exemplo n.º 3
0
        public void RemoveAllCallbacks()
        {
            if (authorityCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in authorityCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                authorityCallbackToCallbackKey.Clear();
            }

            if (updateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in updateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                updateCallbackToCallbackKey.Clear();
            }

            if (nestedFieldUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in nestedFieldUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                nestedFieldUpdateCallbackToCallbackKey.Clear();
            }

            if (other0FieldUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in other0FieldUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                other0FieldUpdateCallbackToCallbackKey.Clear();
            }

            if (other1FieldUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in other1FieldUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                other1FieldUpdateCallbackToCallbackKey.Clear();
            }
        }
Exemplo n.º 4
0
        public void RemoveAllCallbacks()
        {
            if (authorityCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in authorityCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                authorityCallbackToCallbackKey.Clear();
            }

            if (updateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in updateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                updateCallbackToCallbackKey.Clear();
            }

            if (field1UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field1UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field1UpdateCallbackToCallbackKey.Clear();
            }

            if (field2UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field2UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field2UpdateCallbackToCallbackKey.Clear();
            }

            if (field3UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field3UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field3UpdateCallbackToCallbackKey.Clear();
            }

            if (field4UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field4UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field4UpdateCallbackToCallbackKey.Clear();
            }

            if (field5UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field5UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field5UpdateCallbackToCallbackKey.Clear();
            }

            if (field6UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field6UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field6UpdateCallbackToCallbackKey.Clear();
            }

            if (field7UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field7UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field7UpdateCallbackToCallbackKey.Clear();
            }

            if (field8UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field8UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field8UpdateCallbackToCallbackKey.Clear();
            }

            if (field9UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field9UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field9UpdateCallbackToCallbackKey.Clear();
            }

            if (field10UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field10UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field10UpdateCallbackToCallbackKey.Clear();
            }

            if (field11UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field11UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field11UpdateCallbackToCallbackKey.Clear();
            }

            if (field12UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field12UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field12UpdateCallbackToCallbackKey.Clear();
            }

            if (field13UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field13UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field13UpdateCallbackToCallbackKey.Clear();
            }

            if (field14UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field14UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field14UpdateCallbackToCallbackKey.Clear();
            }

            if (field15UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field15UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field15UpdateCallbackToCallbackKey.Clear();
            }

            if (field16UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field16UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field16UpdateCallbackToCallbackKey.Clear();
            }

            if (field17UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field17UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field17UpdateCallbackToCallbackKey.Clear();
            }

            if (field18UpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in field18UpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                field18UpdateCallbackToCallbackKey.Clear();
            }
        }
        public void RemoveAllCallbacks()
        {
            if (authorityCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in authorityCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                authorityCallbackToCallbackKey.Clear();
            }

            if (updateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in updateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                updateCallbackToCallbackKey.Clear();
            }

            if (aUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in aUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                aUpdateCallbackToCallbackKey.Clear();
            }

            if (bUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in bUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                bUpdateCallbackToCallbackKey.Clear();
            }

            if (cUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in cUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                cUpdateCallbackToCallbackKey.Clear();
            }

            if (dUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in dUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                dUpdateCallbackToCallbackKey.Clear();
            }

            if (eUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in eUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                eUpdateCallbackToCallbackKey.Clear();
            }
        }
Exemplo n.º 6
0
        public void RemoveAllCallbacks()
        {
            if (authorityCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in authorityCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                authorityCallbackToCallbackKey.Clear();
            }

            if (updateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in updateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                updateCallbackToCallbackKey.Clear();
            }


            if (damagedRecentlyUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in damagedRecentlyUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                damagedRecentlyUpdateCallbackToCallbackKey.Clear();
            }

            if (regenCooldownTimerUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in regenCooldownTimerUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                regenCooldownTimerUpdateCallbackToCallbackKey.Clear();
            }

            if (cooldownSyncIntervalUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in cooldownSyncIntervalUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                cooldownSyncIntervalUpdateCallbackToCallbackKey.Clear();
            }

            if (regenPauseTimeUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in regenPauseTimeUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                regenPauseTimeUpdateCallbackToCallbackKey.Clear();
            }

            if (regenIntervalUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in regenIntervalUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                regenIntervalUpdateCallbackToCallbackKey.Clear();
            }

            if (regenAmountUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in regenAmountUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                regenAmountUpdateCallbackToCallbackKey.Clear();
            }
        }
Exemplo n.º 7
0
        public void RemoveAllCallbacks()
        {
            if (authorityCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in authorityCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                authorityCallbackToCallbackKey.Clear();
            }

            if (updateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in updateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                updateCallbackToCallbackKey.Clear();
            }


            if (healthUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in healthUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                healthUpdateCallbackToCallbackKey.Clear();
            }

            if (maxHealthUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in maxHealthUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                maxHealthUpdateCallbackToCallbackKey.Clear();
            }

            if (healthModifiedEventCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in healthModifiedEventCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                healthModifiedEventCallbackToCallbackKey.Clear();
            }

            if (respawnEventCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in respawnEventCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                respawnEventCallbackToCallbackKey.Clear();
            }
        }
Exemplo n.º 8
0
        public void RemoveAllCallbacks()
        {
            if (authorityCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in authorityCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                authorityCallbackToCallbackKey.Clear();
            }

            if (updateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in updateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                updateCallbackToCallbackKey.Clear();
            }


            if (boolFieldUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in boolFieldUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                boolFieldUpdateCallbackToCallbackKey.Clear();
            }

            if (intFieldUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in intFieldUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                intFieldUpdateCallbackToCallbackKey.Clear();
            }

            if (longFieldUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in longFieldUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                longFieldUpdateCallbackToCallbackKey.Clear();
            }

            if (floatFieldUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in floatFieldUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                floatFieldUpdateCallbackToCallbackKey.Clear();
            }

            if (doubleFieldUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in doubleFieldUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                doubleFieldUpdateCallbackToCallbackKey.Clear();
            }

            if (firstEventEventCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in firstEventEventCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                firstEventEventCallbackToCallbackKey.Clear();
            }

            if (secondEventEventCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in secondEventEventCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                secondEventEventCallbackToCallbackKey.Clear();
            }
        }
Exemplo n.º 9
0
        public void RemoveAllCallbacks()
        {
            if (authorityCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in authorityCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                authorityCallbackToCallbackKey.Clear();
            }

            if (updateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in updateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                updateCallbackToCallbackKey.Clear();
            }


            if (locationUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in locationUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                locationUpdateCallbackToCallbackKey.Clear();
            }

            if (rotationUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in rotationUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                rotationUpdateCallbackToCallbackKey.Clear();
            }

            if (velocityUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in velocityUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                velocityUpdateCallbackToCallbackKey.Clear();
            }

            if (physicsTickUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in physicsTickUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                physicsTickUpdateCallbackToCallbackKey.Clear();
            }

            if (ticksPerSecondUpdateCallbackToCallbackKey != null)
            {
                foreach (var callbackToKey in ticksPerSecondUpdateCallbackToCallbackKey)
                {
                    CallbackSystem.UnregisterCallback(callbackToKey.Value);
                }

                ticksPerSecondUpdateCallbackToCallbackKey.Clear();
            }
        }