private StateVertex CreateState <T>(Match3State stateEnum) where T : BoardBaseState
        {
            T state = diContainer.Instantiate <T>();

            state.SetState(stateEnum);
            return(new StateVertex(state));
        }
Пример #2
0
        internal static void CreateStone(EcsWorld world, Match3State state, ref Stone stone, int2 pos)
        {
            if (stone == null)
            {
                var eid = world.CreateEntityWith(out stone);
                stone.eid = eid;
            }

            stone.color    = state.Randomizer.RandomColor;
            stone.position = pos;
        }
 public MarkDestroyingComboSystem(EcsWorld world, Match3State state) : base(state)
 {
     _world = world;
 }
Пример #4
0
 public CreateNewStonesSystem(EcsWorld world, ICoreEventsReceiver eventsReceiver, Match3State state) : base(state)
 {
     _world          = world;
     _eventsReceiver = eventsReceiver;
 }
Пример #5
0
 public StoneSwapSystem(EcsWorld world, ICoreEventsReceiver eventsReceiver, Match3State state) : base(state)
 {
     _world          = world;
     _eventsReceiver = eventsReceiver;
     _swappingStones = world.GetFilter <EcsFilter <Stone, Swapping> >();
 }
Пример #6
0
 public FieldInitializeSystem(EcsWorld world, ICoreEventsReceiver eventsReceiver, Match3State state) : base(state)
 {
     _world          = world;
     _eventsReceiver = eventsReceiver;
 }
 public void SetState(Match3State stateEnum)
 {
     state = stateEnum;
 }
Пример #8
0
 public FallStoneSystem(ICoreEventsReceiver eventsReceiver, Match3State state) : base(state)
 {
     _eventsReceiver = eventsReceiver;
 }
Пример #9
0
 protected BaseTickSystem(Match3State state)
 {
     State = state;
 }
Пример #10
0
 public DestroyStoneSystem(EcsWorld world, ICoreEventsReceiver eventsReceiver, Match3State state) : base(state)
 {
     _world          = world;
     _eventsReceiver = eventsReceiver;
     _destroyed      = world.GetFilter <EcsFilter <Stone, Destroyed> >();
 }