Class Tileset
Inheritance
System.Object
Tileset
Syntax
public class Tileset : ScriptableObject
Fields
horizontalMatchingFaceHashes
Declaration
public List<Tileset.FaceHashToOppositeFaceHash> horizontalMatchingFaceHashes
Field Value
marchingCubeLookupName
Declaration
public const string marchingCubeLookupName = "marchingCubeLookup"
Field Value
Type |
Description |
System.String |
|
modules
Declaration
public List<Module> modules
Field Value
Type |
Description |
System.Collections.Generic.List<Module> |
|
postprocessor
Declaration
public Postprocessor postprocessor
Field Value
tileDimensions
Declaration
public Vector3 tileDimensions
Field Value
verticalMatchingFaceHashes
Declaration
public List<Tileset.FaceHashToOppositeFaceHash> verticalMatchingFaceHashes
Field Value
Properties
MarchingCubeLookup
Declaration
public Tileset.CubeConfiguration[] MarchingCubeLookup { get; }
Property Value
Methods
CreateSlotGridFromVoxelGrid(VoxelGrid, Boolean, Boolean, Boolean)
Declaration
public SlotGrid CreateSlotGridFromVoxelGrid(VoxelGrid sourceGrid, bool createBottomTiles, bool createSideTiles, bool createTopTiles)
Parameters
Type |
Name |
Description |
VoxelGrid |
sourceGrid |
|
System.Boolean |
createBottomTiles |
|
System.Boolean |
createSideTiles |
|
System.Boolean |
createTopTiles |
|
Returns
GetSlotContents(VoxelGrid, Vector3Int)
Declaration
public int GetSlotContents(VoxelGrid sourceGrid, Vector3Int coords)
Parameters
Type |
Name |
Description |
VoxelGrid |
sourceGrid |
|
Vector3Int |
coords |
|
Returns
Type |
Description |
System.Int32 |
|
PopulateSlotGridFromVoxelGrid(VoxelGrid, SlotGrid)
Declaration
public void PopulateSlotGridFromVoxelGrid(VoxelGrid sourceGrid, SlotGrid slotGrid)
Parameters
ResetCubeLookup()
Declaration
public void ResetCubeLookup()