protected override void OnCreateManager()
        {
            base.OnCreateManager();

            commandCallbackSystem              = World.GetExistingManager <CommandCallbackSystem>();
            componentCallbackSystem            = World.GetExistingManager <ComponentCallbackSystem>();
            componentConstraintsCallbackSystem = World.GetExistingManager <ComponentConstraintsCallbackSystem>();
        }
        protected override void OnCreate()
        {
            base.OnCreate();

            commandCallbackSystem              = World.GetExistingSystem <CommandCallbackSystem>();
            componentCallbackSystem            = World.GetExistingSystem <ComponentCallbackSystem>();
            componentConstraintsCallbackSystem = World.GetExistingSystem <ComponentConstraintsCallbackSystem>();
            workerFlagCallbackSystem           = World.GetExistingSystem <WorkerFlagCallbackSystem>();
        }
Beispiel #3
0
        protected Reader(World world, Entity entity, EntityId entityId)
        {
            Entity   = entity;
            EntityId = entityId;

            IsValid = true;

            ComponentUpdateSystem = world.GetExistingSystem <ComponentUpdateSystem>();
            CallbackSystem        = world.GetExistingSystem <ComponentCallbackSystem>();
            EntityManager         = world.EntityManager;
        }