Class ParticleSetUpdater
java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
gaiasky.scene.system.update.AbstractUpdateSystem
gaiasky.scene.system.update.ParticleSetUpdater
- All Implemented Interfaces:
IObserver, EntityUpdater
Updates particle set entities, including their positions and visual properties.
-
Field Summary
Fields inherited from class com.badlogic.ashley.core.EntitySystem
priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanloadDescriptorFile(ParticleSet set, IParticleRecord bean, int index, boolean isFocused) voidEvent notification call.protected voidprocessEntity(com.badlogic.ashley.core.Entity entity, float deltaTime) voidupdateCommon(ICamera camera, ParticleSet set) Do the proximity loading processing.voidupdateEntity(com.badlogic.ashley.core.Entity entity, float deltaTime) Updates the entity.Methods inherited from class com.badlogic.ashley.systems.IteratingSystem
addedToEngine, getEntities, getFamily, removedFromEngine, updateMethods inherited from class com.badlogic.ashley.core.EntitySystem
checkProcessing, getEngine, setProcessingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityUpdater
getFamilyModifier and TypeMethodDescriptioncom.badlogic.ashley.core.FamilyReturns the family for this updater.
-
Constructor Details
-
ParticleSetUpdater
public ParticleSetUpdater(com.badlogic.ashley.core.Family family, int priority)
-
-
Method Details
-
processEntity
protected void processEntity(com.badlogic.ashley.core.Entity entity, float deltaTime) - Specified by:
processEntityin classcom.badlogic.ashley.systems.IteratingSystem
-
updateEntity
public void updateEntity(com.badlogic.ashley.core.Entity entity, float deltaTime) Description copied from interface:EntityUpdaterUpdates the entity.- Specified by:
updateEntityin interfaceEntityUpdater- Parameters:
entity- The entity to update.deltaTime- The delta time since last frame.
-
updateCommon
Do the proximity loading processing.- Parameters:
camera- The camera.set- The set.
-
loadDescriptorFile
public boolean loadDescriptorFile(ParticleSet set, IParticleRecord bean, int index, boolean isFocused) -
notify
-