‪TechbloxModdingAPI  ‪v2.2.0
‪The unofficial Techblox modding API
TechbloxModdingAPI.EcsObjectBase Class Reference
Inheritance diagram for TechbloxModdingAPI.EcsObjectBase:
TechbloxModdingAPI.Block TechbloxModdingAPI.BlockGroup TechbloxModdingAPI.Blocks.Wire TechbloxModdingAPI.Cluster TechbloxModdingAPI.Player TechbloxModdingAPI.SimBody TechbloxModdingAPI.Blocks.SignalingBlock TechbloxModdingAPI.Blocks.DampedSpring TechbloxModdingAPI.Blocks.Engine TechbloxModdingAPI.Blocks.LogicGate TechbloxModdingAPI.Blocks.Motor TechbloxModdingAPI.Blocks.ObjectID TechbloxModdingAPI.Blocks.Piston TechbloxModdingAPI.Blocks.Seat TechbloxModdingAPI.Blocks.Servo TechbloxModdingAPI.Blocks.WheelRig

Classes

struct  EcsInitData
 ‪Holds information needed to construct a component initializer More...
 

Protected Member Functions

 EcsObjectBase (EGID id)
 
 EcsObjectBase (Func< EcsObjectBase, EGID > initializer)
 

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, EcsObjectBaseGetInstances (Type type)
 

Package Attributes

EcsInitData InitData
 

Properties

EGID Id [get]
 

Constructor & Destructor Documentation

◆ EcsObjectBase() [1/2]

TechbloxModdingAPI.EcsObjectBase.EcsObjectBase ( EGID  id)
inlineprotected

◆ EcsObjectBase() [2/2]

TechbloxModdingAPI.EcsObjectBase.EcsObjectBase ( Func< EcsObjectBase, EGID >  initializer)
inlineprotected

Member Function Documentation

◆ GetInstance< T >()

static T TechbloxModdingAPI.EcsObjectBase.GetInstance< T > ( EGID  egid,
Func< EGID, T >  constructor,
Type  type = null 
)
inlinestaticpackage

‪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
T‪The object type
Returns
Type Constraints
T :EcsObjectBase 

◆ GetInstances()

static WeakDictionary<EGID, EcsObjectBase> TechbloxModdingAPI.EcsObjectBase.GetInstances ( Type  type)
inlinestaticpackage

Member Data Documentation

◆ InitData

EcsInitData TechbloxModdingAPI.EcsObjectBase.InitData
package

Property Documentation

◆ Id

EGID TechbloxModdingAPI.EcsObjectBase.Id
get

The documentation for this class was generated from the following file: