Struct CreateCellEntityLayerRequest
Inherited Members
Namespace: Fwt.HexTerrains.CellEntities.Data
Assembly: fwt.hexterrains.dll
Syntax
public struct CreateCellEntityLayerRequest : IBufferElementData, ITerrainLayerFactory
Fields
Args
Declaration
public UnityObjectRef<CellEntityLayerConfigAsset> Args
Field Value
| Type | Description |
|---|---|
| UnityObjectRef<CellEntityLayerConfigAsset> |
Name
Declaration
public FixedString128Bytes Name
Field Value
| Type | Description |
|---|---|
| FixedString128Bytes |
PrefabsRangeSize
All entity prefabs are baked to the terrain entity into dedicated dynamic buffer, and because there is a list of layers, some of those entity prefab are for another layers, so this is the amount of entity prefabs in that combined list that are belong to this layer.
Declaration
public int PrefabsRangeSize
Field Value
| Type | Description |
|---|---|
| int |
PrefabsRangeStart
All entity prefabs are baked to the terrain entity into dedicated dynamic buffer, and because there is a list of layers, some of those entity prefab are for another layers, so this is the first index of entity prefabs in that combined list that are belong to this layer.
Declaration
public int PrefabsRangeStart
Field Value
| Type | Description |
|---|---|
| int |
Methods
CreateTerrainLayer()
Creates a new instance of a terrain layer for hex-based maps.
Declaration
public HexTerrainLayer CreateTerrainLayer()
Returns
| Type | Description |
|---|---|
| HexTerrainLayer | A HexTerrainLayer representing the newly created terrain layer. |
Implements
Unity.Entities.IBufferElementData