Package gaiasky.scene.entity
Class StarSetUtils
java.lang.Object
gaiasky.scene.entity.StarSetUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
com.badlogic.ashley.core.Entity
getDefaultStarSet
(String name, List<IParticleRecord> data, BaseInitializer baseInitializer, ParticleSetInitializer starSetInitializer, boolean fullInit) Creates a default star set entity with some sane parameters, given the name and the data
-
Constructor Details
-
StarSetUtils
Constructs a star set utils with the given scene.
-
-
Method Details
-
getDefaultStarSet
public com.badlogic.ashley.core.Entity getDefaultStarSet(String name, List<IParticleRecord> data, BaseInitializer baseInitializer, ParticleSetInitializer starSetInitializer, boolean fullInit) Creates a default star set entity with some sane parameters, given the name and the data- Parameters:
name
- The name of the star group. Any occurrence of '%%SGID%%' in name will be replaced with the id of the star group.data
- The data of the star group.baseInitializer
- The base initializer.starSetInitializer
- The initializer to use for the star set initialization.fullInit
- Whether to run thesetUpEntity()
to fully initialize the star set.- Returns:
- A new star group with sane parameters
-
dispose
-