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