Class TriggerVolumeNoHealSystem
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>, TickableSystem<EntityStore>
NoHealRule volumes by marking the health
stat raise-suppressed on their EntityStatMap. Suppression is enforced centrally for every
value-raising path (add, set, maximize, reset), so all heal sources are covered without per-path hooks.-
Nested Class Summary
Nested classes/interfaces inherited from class EntityTickingSystem
EntityTickingSystem.SystemTaskData<ECS_TYPE> -
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionTriggerVolumeNoHealSystem(ResourceType<EntityStore, TriggerVolumeManager> managerResourceType) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidtick(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) Required reading:CommandBufferMethods inherited from class EntityTickingSystem
doTick, isParallel, tickMethods inherited from class ArchetypeTickingSystem
isExplicitQuery, test, tickMethods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope
-
Constructor Details
-
TriggerVolumeNoHealSystem
public TriggerVolumeNoHealSystem(@Nonnull ResourceType<EntityStore, TriggerVolumeManager> managerResourceType)
-
-
Method Details
-
getQuery
-
tick
public void tick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) Description copied from class:EntityTickingSystemRequired reading:CommandBufferCalled once per world tick for each 'entity' inside of an
ArchetypeChunkwith anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.If
EntityTickingSystem.isParallel(int, int)returns true then this is called from a worker thread in the thread pool NOT from the world thread. When working with a parallel system special care must be taken to ensure data that is accessed is done so in a thead safe manor and that all components that have data that is modified are present in theReadWriteArchetypeQuery.getWriteArchetype(). TODO: Expand docs to talk more about how other query types tie into this.To access component data when using this method you should use the following:
var component = archetypeChunk.getComponent(index, componentType);- Specified by:
tickin classEntityTickingSystem<EntityStore>- Parameters:
dt- The delta time in seconds.index- The index of the entity in theArchetypeChunk.
-