|
Empeld
Empeld plugin documentation.
|
An object that represents an in-world instance of a prefab More...
Public Member Functions | |
| 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... | |
Static Public Attributes | |
| 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 | |
| readonly IWorld | World |
| World More... | |
Properties | |
| 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... | |
An object that represents an in-world instance of a prefab
| essentials.Prefabs.PrefabInstance.PrefabInstance | ( | IReadonlyPrefab | prefab, |
| Vector3i | pos | ||
| ) |
Create an instance from a given prefab and a world position
| prefab | Prefab. |
| pos | Position. |
| delegate bool essentials.Prefabs.PrefabInstance.PrefabLookupDelegate | ( | PrefabBlock | pb | ) |
A delegate to help determine ways to look up a prefab
|
static |
Lookup that will return all blocks
|
static |
Look that will return all blocks except those that are empty (id 0)
|
static |
Lookup that will return all blocks that are renderable
|
static |
Lookup that will only return solid blocks
|
protected |
World
Attribute: Dependency
|
get |
The world-area of the prefab
The area.
|
get |
The position of the instance
The position.
|
get |
The prefab that this instance represents
The prefab.
|
get |
The size of the prefab
The size.
|
get |
The max coord for world position
The world position max.
|
get |
The min coord for world position
The world position minimum.