private StateVertex CreateState <T>(Match3State stateEnum) where T : BoardBaseState { T state = diContainer.Instantiate <T>(); state.SetState(stateEnum); return(new StateVertex(state)); }
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; }
public CreateNewStonesSystem(EcsWorld world, ICoreEventsReceiver eventsReceiver, Match3State state) : base(state) { _world = world; _eventsReceiver = eventsReceiver; }
public StoneSwapSystem(EcsWorld world, ICoreEventsReceiver eventsReceiver, Match3State state) : base(state) { _world = world; _eventsReceiver = eventsReceiver; _swappingStones = world.GetFilter <EcsFilter <Stone, Swapping> >(); }
public FieldInitializeSystem(EcsWorld world, ICoreEventsReceiver eventsReceiver, Match3State state) : base(state) { _world = world; _eventsReceiver = eventsReceiver; }
public void SetState(Match3State stateEnum) { state = stateEnum; }
public FallStoneSystem(ICoreEventsReceiver eventsReceiver, Match3State state) : base(state) { _eventsReceiver = eventsReceiver; }
protected BaseTickSystem(Match3State state) { State = state; }
public DestroyStoneSystem(EcsWorld world, ICoreEventsReceiver eventsReceiver, Match3State state) : base(state) { _world = world; _eventsReceiver = eventsReceiver; _destroyed = world.GetFilter <EcsFilter <Stone, Destroyed> >(); }