Class InventorySystems.LegacyArmorChangeStatSystem

All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>, TickableSystem<EntityStore>
Enclosing class:
InventorySystems

@Deprecated(forRemoval=true) public static class InventorySystems.LegacyArmorChangeStatSystem extends EntityTickingSystem<EntityStore>
Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • LegacyArmorChangeStatSystem

      public LegacyArmorChangeStatSystem()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • tick

      public void tick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: EntityTickingSystem
      Required reading: CommandBuffer

      Called once per world tick for each 'entity' inside of an ArchetypeChunk with an Archetype that fulfills the Query provided by QuerySystem.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 the ReadWriteArchetypeQuery.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:
      tick in class EntityTickingSystem<EntityStore>
      Parameters:
      dt - The delta time in seconds.
      index - The index of the entity in the ArchetypeChunk.
    • getQuery

      @Nullable public Query<EntityStore> getQuery()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getDependencies

      @Nonnull public Set<Dependency<EntityStore>> getDependencies()
      Deprecated, for removal: This API element is subject to removal in a future version.