|
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) |
|
◆ EcsObjectBase() [1/2]
TechbloxModdingAPI.EcsObjectBase.EcsObjectBase |
( |
EGID |
id | ) |
|
|
inlineprotected |
◆ EcsObjectBase() [2/2]
TechbloxModdingAPI.EcsObjectBase.EcsObjectBase |
( |
Func< EcsObjectBase, EGID > |
initializer | ) |
|
|
inlineprotected |
◆ 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
-
- Returns
◆ GetInstances()
◆ InitData
◆ Id
EGID TechbloxModdingAPI.EcsObjectBase.Id |
|
get |
The documentation for this class was generated from the following file: