예제 #1
0
        // LIFE-CYCLE

        override protected void OnCreateManager()
        {
            simulationSystem = World.GetOrCreateSystem <SimulationSystem>();
            viewCmdStack     = CommandStack.Get <ViewCommandStack>(100);

            blockPrefabsQuery = GetEntityQuery(
                ComponentType.ReadOnly <Block>(),
                ComponentType.ReadOnly <Prefab>()
                );

            levelQuery = GetEntityQuery(
                ComponentType.ReadOnly <LevelInfo>()
                );

            wasMovingDownCommand = true;
        }
예제 #2
0
        // LIFE-CYCLE

        protected override void OnCreateManager()
        {
            cmdBuffer    = World.GetOrCreateSystem <SimulationCmdBuffer>();
            viewCmdStack = CommandStack.Get <ViewCommandStack>(100);

            levelQuery = GetEntityQuery(
                ComponentType.ReadWrite <LevelInfo>()
                );

            swapQueriesQuery = GetEntityQuery(
                ComponentType.ReadOnly <SwapQuery>()
                );

            patternsQuery = GetEntityQuery(
                ComponentType.ReadOnly <PatternInfo>()
                );
        }
예제 #3
0
        // LIFE-CYCLE

        protected override void OnCreateManager()
        {
            blocksWithAnimationQuery = GetEntityQuery(
                ComponentType.ReadOnly <Block>(),
                ComponentType.ReadOnly <Hybrid.Runtime.ForwardAnimationEvents>()
                );

            highlightBlocksQuery = GetEntityQuery(
                ComponentType.ReadOnly <Block>(),
                ComponentType.ReadOnly <HighligthCommand>()
                );

            deleteBlocksQuery = GetEntityQuery(
                ComponentType.ReadOnly <Block>(),
                ComponentType.ReadOnly <DeleteCommand>()
                );

            cmdBuffer     = World.GetOrCreateSystem <ViewCmdBuffer>();
            viewCmdStack  = CommandStack.Get <ViewCommandStack>(100);
            pendingDelete = new List <Entity>();
        }
예제 #4
0
        // LIFE-CYCLE

        override protected void OnCreateManager()
        {
            cmdBuffer    = World.GetOrCreateSystem <ViewCmdBuffer>();
            viewCmdStack = CommandStack.Get <ViewCommandStack>(100);
            levelQuery   = GetEntityQuery(ComponentType.ReadOnly <LevelInfo>());
        }