Empeld
Empeld plugin documentation.
|
A PrefabInstance that is read-write More...
Public Member Functions | |
PrefabWriterInstance (Vector3i pos, Size3i size, Vector3i center) | |
Create a new instance at a given position More... | |
PrefabWriterInstance (Vector3i pos, Size3i size) | |
Create a writer instance at a position with a size More... | |
PrefabWriterInstance (IPrefab prefab, Vector3i pos) | |
Create a prefab instance from another prefba and a pos More... | |
Public Member Functions inherited from essentials.Prefabs.PrefabInstance | |
delegate bool | PrefabLookupDelegate (PrefabBlock pb) |
A delegate to help determine ways to look up a prefab More... | |
PrefabInstance (IReadonlyPrefab prefab, Vector3i pos) | |
Create an instance from a given prefab and a world position More... | |
Properties | |
new IPrefab | Prefab [get] |
The prefab More... | |
Properties inherited from essentials.Prefabs.PrefabInstance | |
Vector3i | Position [get] |
The position of the instance More... | |
Vector3i | WorldPositionMin [get] |
The min coord for world position More... | |
Vector3i | WorldPositionMax [get] |
The max coord for world position More... | |
IReadonlyPrefab | Prefab [get] |
The prefab that this instance represents More... | |
Size3i | Size [get] |
The size of the prefab More... | |
Volume | Area [get] |
The world-area of the prefab More... | |
Additional Inherited Members | |
Static Public Attributes inherited from essentials.Prefabs.PrefabInstance | |
static readonly PrefabLookupDelegate | PredicateAll = pb => true |
Lookup that will return all blocks More... | |
static readonly PrefabLookupDelegate | PredicateNoInvisible = pb => pb.Block.Renderable |
Lookup that will return all blocks that are renderable More... | |
static readonly PrefabLookupDelegate | PredicateOnlySolid = pb => pb.Block.Solid |
Lookup that will only return solid blocks More... | |
static readonly PrefabLookupDelegate | PredicateNoEmpty = pb => pb.Block.Id != 0 |
Look that will return all blocks except those that are empty (id 0) More... | |
Protected Attributes inherited from essentials.Prefabs.PrefabInstance | |
readonly IWorld | World |
World More... | |
A PrefabInstance that is read-write
essentials.Prefabs.PrefabWriterInstance.PrefabWriterInstance | ( | Vector3i | pos, |
Size3i | size, | ||
Vector3i | center | ||
) |
Create a new instance at a given position
pos | Position. |
size | Size. |
center | Center. |
Create a writer instance at a position with a size
pos | Position. |
size | Size. |
Create a prefab instance from another prefba and a pos
prefab | Prefab. |
pos | Position. |
|
get |
The prefab
The prefab.