|
static void | PublishEntityChangeDelayed< T > (this EntitiesDB entitiesDB, EGID id, int limit=80) |
| Publishes an entity change, ignoring duplicate publishes and delaying changes as necessary. It will only publish in the next frame. More...
|
|
static OptionalRef< T > | QueryEntityOptional< T > (this EntitiesDB entitiesDB, EcsObjectBase obj, ExclusiveGroupStruct group=default) |
| Attempts to query an entity and returns the result in an optional reference. More...
|
|
static OptionalRef< T > | QueryEntityOptional< T > (this EntitiesDB entitiesDB, EGID egid) |
| Attempts to query an entity and returns an optional that contains the result if succeeded. This overload does not take initializer data into account. More...
|
|
static ref T | QueryEntityOrDefault< T > (this EntitiesDB entitiesDB, EcsObjectBase obj, ExclusiveGroupStruct group=default) |
| Attempts to query an entity and returns the result or a dummy value that can be modified. More...
|
|
◆ PublishEntityChangeDelayed< T >()
static void TechbloxModdingAPI.Utility.NativeApiExtensions.PublishEntityChangeDelayed< T > |
( |
this EntitiesDB |
entitiesDB, |
|
|
EGID |
id, |
|
|
int |
limit = 80 |
|
) |
| |
|
inlinestatic |
Publishes an entity change, ignoring duplicate publishes and delaying changes as necessary. It will only publish in the next frame.
- Parameters
-
entitiesDB | The entities DB to publish to |
id | The ECS object that got changed |
limit | Limits how many changes to publish - should be no more than the consumers' capacity that process this component |
- Template Parameters
-
T | The component that changed |
- Type Constraints
-
T | : | unmanaged | |
T | : | IEntityComponent | |
◆ QueryEntityOptional< T >() [1/2]
static OptionalRef<T> TechbloxModdingAPI.Utility.NativeApiExtensions.QueryEntityOptional< T > |
( |
this EntitiesDB |
entitiesDB, |
|
|
EcsObjectBase |
obj, |
|
|
ExclusiveGroupStruct |
group = default |
|
) |
| |
|
inlinestatic |
Attempts to query an entity and returns the result in an optional reference.
- Parameters
-
entitiesDB | The entities DB to query from |
obj | The ECS object to query |
group | The group of the entity if the object can have multiple |
- Template Parameters
-
- Returns
- A reference to the component or a dummy value
- Type Constraints
-
T | : | unmanaged | |
T | : | IEntityComponent | |
◆ QueryEntityOptional< T >() [2/2]
static OptionalRef<T> TechbloxModdingAPI.Utility.NativeApiExtensions.QueryEntityOptional< T > |
( |
this EntitiesDB |
entitiesDB, |
|
|
EGID |
egid |
|
) |
| |
|
inlinestatic |
Attempts to query an entity and returns an optional that contains the result if succeeded. This overload does not take initializer data into account.
- Parameters
-
entitiesDB | The entities DB |
egid | The EGID to query |
- Template Parameters
-
T | The component type to query |
- Returns
- An optional that contains the result on success or is empty if not found
- Type Constraints
-
T | : | unmanaged | |
T | : | IEntityComponent | |
◆ QueryEntityOrDefault< T >()
static ref T TechbloxModdingAPI.Utility.NativeApiExtensions.QueryEntityOrDefault< T > |
( |
this EntitiesDB |
entitiesDB, |
|
|
EcsObjectBase |
obj, |
|
|
ExclusiveGroupStruct |
group = default |
|
) |
| |
|
inlinestatic |
Attempts to query an entity and returns the result or a dummy value that can be modified.
- Parameters
-
entitiesDB | The entities DB to query from |
obj | The ECS object to query |
group | The group of the entity if the object can have multiple |
- Template Parameters
-
- Returns
- A reference to the component or a dummy value
- Type Constraints
-
T | : | unmanaged | |
T | : | IEntityComponent | |
The documentation for this class was generated from the following file: