예제 #1
0
            public DispatcherHandler(WorkerSystem worker, World world) : base(worker, world)
            {
                entityManager = world.GetOrCreateManager <EntityManager>();
                var bookkeepingSystem = world.GetOrCreateManager <CommandRequestTrackerSystem>();

                cmdStorage = bookkeepingSystem.GetCommandStorageForType <CommandStorages.Cmd>();
            }
예제 #2
0
            public ComponentReplicator(EntityManager entityManager, Unity.Entities.World world) : base(entityManager)
            {
                var bookkeepingSystem = world.GetOrCreateManager <CommandRequestTrackerSystem>();

                cmdStorage = bookkeepingSystem.GetCommandStorageForType <CommandStorages.Cmd>();
            }