Class StarSetUtils

java.lang.Object
gaiasky.scene.entity.StarSetUtils

public class StarSetUtils extends Object
  • Constructor Details

    • StarSetUtils

      public StarSetUtils(Scene scene)
      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 the setUpEntity() to fully initialize the star set.
      Returns:
      A new star group with sane parameters
    • dispose

      public void dispose(com.badlogic.ashley.core.Entity entity, StarSet set)