Represnts a cluster of blocks in time running mode, meaning blocks that are connected either directly or via joints. Only exists if a cluster destruction manager is present. Static blocks like grass and dirt aren't part of a cluster.
More...
|
float | Mass => Block.BlockEngine.GetBlockInfo<ClusterMassComponent>(this).mass |
| The mass of the cluster. More...
|
|
|
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) |
|
Represnts a cluster of blocks in time running mode, meaning blocks that are connected either directly or via joints. Only exists if a cluster destruction manager is present. Static blocks like grass and dirt aren't part of a cluster.
◆ Cluster() [1/2]
TechbloxModdingAPI.Cluster.Cluster |
( |
EGID |
id | ) |
|
|
inline |
◆ Cluster() [2/2]
TechbloxModdingAPI.Cluster.Cluster |
( |
uint |
id | ) |
|
|
inline |
◆ Equals() [1/2]
bool TechbloxModdingAPI.Cluster.Equals |
( |
Cluster |
other | ) |
|
|
inlineprotected |
◆ Equals() [2/2]
override bool TechbloxModdingAPI.Cluster.Equals |
( |
object |
obj | ) |
|
|
inline |
◆ GetHashCode()
override int TechbloxModdingAPI.Cluster.GetHashCode |
( |
| ) |
|
|
inline |
◆ GetInstance< T >()
static T TechbloxModdingAPI.EcsObjectBase.GetInstance< T > |
( |
EGID |
egid, |
|
|
Func< EGID, T > |
constructor, |
|
|
Type |
type = null |
|
) |
| |
|
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.
- Parameters
-
egid | The EGID of the entity |
constructor | The constructor to construct the object |
- Template Parameters
-
- Returns
◆ GetInstances()
|
inlinestaticpackageinherited |
◆ GetSimBodies()
SimBody [] TechbloxModdingAPI.Cluster.GetSimBodies |
( |
| ) |
|
|
inline |
Returns the simulation-time rigid bodies for the chunks in this cluster.
- Returns
- An array of sim-bodies
◆ ToString()
override string TechbloxModdingAPI.Cluster.ToString |
( |
| ) |
|
|
inline |
◆ InitData
◆ Mass
float TechbloxModdingAPI.Cluster.Mass => Block.BlockEngine.GetBlockInfo<ClusterMassComponent>(this).mass |
The mass of the cluster.
◆ CurrentHealth
float TechbloxModdingAPI.Cluster.CurrentHealth |
|
getset |
◆ HealthMultiplier
float TechbloxModdingAPI.Cluster.HealthMultiplier |
|
getset |
◆ Id
EGID TechbloxModdingAPI.EcsObjectBase.Id |
|
getinherited |
◆ InitialHealth
float TechbloxModdingAPI.Cluster.InitialHealth |
|
getset |
The documentation for this class was generated from the following file: