public MapManager(CellLayout layout, CellSwizzle swizzle, Vector3Int cellSize) { _baseGrid = new GameObject("Grid").AddComponent <Grid>(); Layout = layout; Swizzle = swizzle; CellSize = cellSize; }
public void SwizzleMap(CellSwizzle swizzle) { Swizzle = swizzle; _mapBuilder.SetSwizzle(swizzle); }
public RectangleMapBuilder(Vector3 cellSize, CellSwizzle swizzle) : base(cellSize, swizzle) { }
public HexagonMapManager(CellSwizzle swizzle, Vector3Int cellSize) : base(CellLayout.Hexagon, swizzle, cellSize) { _mapBuilder = new HexagonMapBuilder(cellSize, swizzle); base._mapBuilder = _mapBuilder; }
public HexagonMapBuilder(Vector3 cellSize, CellSwizzle swizzle) : base(cellSize, swizzle) { Anchor = new Vector3(0, 0, 0); }
public MapTransformControl(Vector3 cellSize, CellSwizzle swizzle) { CellSize = cellSize; Swizzle = swizzle; }
public void SetSwizzle(CellSwizzle swizzle) { MapTransform.Swizzle = swizzle; SetOrientation(); }
public MapBuilder(Vector3 cellSize, CellSwizzle swizzle) { MapTransform = new MapTransformControl(cellSize, swizzle); }
public RectangleMapManager(CellSwizzle swizzle, Vector3Int cellSize) : base(CellLayout.Rectangle, swizzle, cellSize) { _mapBuilder = new RectangleMapBuilder(cellSize, swizzle); base._mapBuilder = _mapBuilder; }