Example #1
0
        public void InvokeCallbacks()
        {
            var changes = componentUpdateSystem.GetAuthorityChangesReceived(componentId);

            for (var i = 0; i < changes.Count; ++i)
            {
                if (changes[i].Authority == Authority.Authoritative)
                {
                    callbackCollection.InvokeAll(changes[i]);
                }
                else if (changes[i].Authority == Authority.NotAuthoritative)
                {
                    callbackCollection.InvokeAllReverse(changes[i]);
                }
            }
        }
        public void InvokeCallbacks()
        {
            var entities = entitySystem.GetEntitiesRemoved();

            foreach (var entityId in entities)
            {
                callbackCollection.InvokeAllReverse(entityId);
            }
        }
Example #3
0
        public void InvokeCallbacks()
        {
            // todo like entity stuff this should also be temporarily removed components
            var entities = componentUpdateSystem.GetComponentsRemoved(componentId);

            foreach (var entityId in entities)
            {
                callbackCollection.InvokeAllReverse(entityId);
            }
        }