public BlockShapeData GetShape(EBlockShapeType shapeType) { if (!_shapes.TryGetValue(shapeType, out var shape)) { UnityEngine.Debug.LogError($"{this}: shape '{shapeType}' was not found"); } return(shape); }
public IBlockModel CreateBlock(EBlockShapeType shapeType, Vector3Int position, Quaternion rotation) { var shape = _blockShapeProvider.GetShape(shapeType); return(new BlockModel(shape, position, rotation)); }