public SubMap(Map map, Cell[] cells, SubMapBinder binder) { Map = map; Cells = cells; SubMapId = binder.SubMapId; m_neighbours = binder.Neighbours; }
public MapTravel(SubMapTransition[] transitions, SubMapBinder[] subMaps) { Transitions = transitions; SubMaps = subMaps; if (Transitions.Length != SubMaps.Length) throw new ArgumentException("Transitions.Length != SubMaps.Length"); }
private void CurrentTransitionOnTransitionEnded(SubMapTransition transition, SubMap @from, SubMapBinder to, bool success) { CurrentTransition.TransitionEnded -= CurrentTransitionOnTransitionEnded; if (!success) Index = -1; else { Index++; } OnTransitionEnded(transition, success); }
private void CurrentTransitionOnTransitionEnded(SubMapTransition transition, SubMap @from, SubMapBinder to, bool success) { CurrentTransition.TransitionEnded -= CurrentTransitionOnTransitionEnded; if (!success) { Index = -1; } else { Index++; } OnTransitionEnded(transition, success); }
public AdjacentSubMap(SubMapBinder subMap, ICell[] changeCells) { SubMap = subMap; ChangeCells = changeCells; }