TechbloxModdingAPI
v2.2.0
The unofficial Techblox modding API
|
A group of blocks that can be selected together. The placed version of blueprints. Dispose after usage. More...
Public Member Functions | |
void | Clear () |
Removes all blocks from this group. You cannot remove blocks that have been initialized, only those that you placed recently. More... | |
bool | Contains (Block item) |
void | Dispose () |
IEnumerator< Block > | GetEnumerator () |
override string | ToString () |
Static Public Member Functions | |
static BlockGroup | Create (Block block) |
Creates a new block group consisting of a single block. You can add more blocks using the Add() method or by setting the BlockGroup property of the blocks. Note that only newly placed blocks can be added to groups. More... | |
Public Attributes | |
Block | this[int index] => blocks[index] |
Package Functions | |
BlockGroup (int id, Block block) | |
void | AddInternal (Block item) |
void | RemoveInternal (Block item) |
Static Package Functions | |
static T | GetInstance< T > (EGID egid, Func< EGID, T > constructor, Type type=null) |
Returns a cached instance if there's an actively used instance of the object already. Objects still get garbage collected and then they will be removed from the cache. More... | |
static WeakDictionary< EGID, EcsObjectBase > | GetInstances (Type type) |
static void | Init () |
Package Attributes | |
EcsInitData | InitData |
bool | PosAndRotCalculated |
Static Package Attributes | |
static BlueprintEngine | _engine = new BlueprintEngine() |
Properties | |
EGID | Id [get] |
float3 | Position [get, set] |
The position of the block group (center). Can only be used after initialization is complete. More... | |
float3 | Rotation [get, set] |
The rotation of the block group. Can only be used after initialization is complete. More... | |
A group of blocks that can be selected together. The placed version of blueprints. Dispose after usage.
|
inlinepackage |
|
inlinepackage |
|
inline |
Removes all blocks from this group. You cannot remove blocks that have been initialized, only those that you placed recently.
|
inline |
|
inlinestatic |
Creates a new block group consisting of a single block. You can add more blocks using the Add() method or by setting the BlockGroup property of the blocks.
Note that only newly placed blocks can be added to groups.
block | The block to add |
|
inline |
|
inline |
|
inlinestaticpackageinherited |
Returns a cached instance if there's an actively used instance of the object already. Objects still get garbage collected and then they will be removed from the cache.
egid | The EGID of the entity |
constructor | The constructor to construct the object |
T | The object type |
T | : | EcsObjectBase |
|
inlinestaticpackageinherited |
|
inlinestaticpackage |
|
inlinepackage |
|
inline |
|
staticpackage |
|
packageinherited |
|
package |
Block TechbloxModdingAPI.BlockGroup.this[int index] => blocks[index] |
|
getinherited |
|
getset |
The position of the block group (center). Can only be used after initialization is complete.
|
getset |
The rotation of the block group. Can only be used after initialization is complete.