Class AttractorStorage
java.lang.Object
team.lodestar.lodestone.modules.rendering.particle.component.types.attractor.AttractorStorage
- All Implemented Interfaces:
PreUpdateComponent,ParticleComponentStorage<AttractorConfig>
public class AttractorStorage
extends Object
implements ParticleComponentStorage<AttractorConfig>, PreUpdateComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonSpawn(int particleIndex, AttractorConfig config, ParticleSpawnContext spawnContext, ParticleView particles) voidonSwapRemove(int deadIndex, int movedIndex, ParticleView particles) voidpreUpdate(int liveCount, float dt, ParticleView particles)
-
Constructor Details
-
AttractorStorage
public AttractorStorage(int capacity)
-
-
Method Details
-
preUpdate
- Specified by:
preUpdatein interfacePreUpdateComponent
-
onSpawn
public void onSpawn(int particleIndex, AttractorConfig config, ParticleSpawnContext spawnContext, ParticleView particles) - Specified by:
onSpawnin interfaceParticleComponentStorage<AttractorConfig>
-
onSwapRemove
- Specified by:
onSwapRemovein interfaceParticleComponentStorage<AttractorConfig>
-