Empeld
Empeld plugin documentation.
|
A helper object that will keep a list of blocks to-be-constructed in the world More...
Public Member Functions | |
PrefabConstructor (IWorld world, IEnumerable< PrefabBlock > buildList) | |
Initializes a new instance of the essentials.Prefabs.PrefabConstructor class. More... | |
PrefabBlock | Peek () |
Gets the next block to be constructed, if any More... | |
PrefabBlock | Pop () |
Pops the next block to be constructed of the queue, if any More... | |
bool | BuildNext () |
Pop the next block off the stack and build it in the world More... | |
void | Construct () |
Build the entire construct in the world More... | |
ITask | CreateScheduledTask (TimeSpan placeDelay) |
Helper to create a scheduled task to build the structure over time More... | |
Properties | |
bool | Complete [get] |
Has the construction completed More... | |
A helper object that will keep a list of blocks to-be-constructed in the world
essentials.Prefabs.PrefabConstructor.PrefabConstructor | ( | IWorld | world, |
IEnumerable< PrefabBlock > | buildList | ||
) |
Initializes a new instance of the essentials.Prefabs.PrefabConstructor class.
world | World. |
buildList | Build list. |
bool essentials.Prefabs.PrefabConstructor.BuildNext | ( | ) |
Pop the next block off the stack and build it in the world
true
, if next was built, false
otherwise.Attribute: item.Value.WorldPos].Block = _world.BlockLookup[item.Value.Block.Id
;
void essentials.Prefabs.PrefabConstructor.Construct | ( | ) |
Build the entire construct in the world
ITask essentials.Prefabs.PrefabConstructor.CreateScheduledTask | ( | TimeSpan | placeDelay | ) |
Helper to create a scheduled task to build the structure over time
placeDelay | Place delay. |
PrefabBlock essentials.Prefabs.PrefabConstructor.Peek | ( | ) |
PrefabBlock essentials.Prefabs.PrefabConstructor.Pop | ( | ) |
|
get |
Has the construction completed
true
if complete; otherwise, false
.