Class BillboardSetInitializer

java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
gaiasky.scene.system.initialize.AbstractInitSystem
gaiasky.scene.system.initialize.BillboardSetInitializer
All Implemented Interfaces:
EntityInitializer

public class BillboardSetInitializer extends AbstractInitSystem
Initializes billboard set entities, including their procedural generation and texture management.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
    Size multiplier of the label of a billboard set.
    static final float
    Angular size factor of the label of a billboard set.

    Fields inherited from class AbstractInitSystem

    engineBackup, logger
    Modifier and Type
    Field
    Description
    protected com.badlogic.ashley.core.Engine
     
    protected Logger.Log
     

    Fields inherited from class com.badlogic.ashley.core.EntitySystem

    priority
  • Constructor Summary

    Constructors
    Constructor
    Description
    BillboardSetInitializer(boolean setUp, com.badlogic.ashley.core.Family family, int priority)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    initializeEntity(com.badlogic.ashley.core.Entity entity)
    Contains the initialization of this entity before the scene graph structure has been constructed, or the entity is in the index.
    void
    reloadData(com.badlogic.ashley.core.Entity entity)
     
    void
    setUpEntity(com.badlogic.ashley.core.Entity entity)
    Contains the set-up of this entity, after the entity has been added to the scene graph, it is in the index, and assets have been loaded.
    void
    transformData(com.badlogic.ashley.core.Entity entity)
     

    Methods inherited from class AbstractInitSystem

    addedToEngine, isModeInit, isModeSetUp, processEntity, setModeInit, setModeSetUp, toString
    Modifier and Type
    Method
    Description
    void
    addedToEngine(com.badlogic.ashley.core.Engine engine)
     
    boolean
     
    boolean
     
    protected void
    processEntity(com.badlogic.ashley.core.Entity entity, float deltaTime)
     
    void
     
    void
     
     

    Methods inherited from class com.badlogic.ashley.systems.IteratingSystem

    getEntities, getFamily, removedFromEngine, update

    Methods inherited from class com.badlogic.ashley.core.EntitySystem

    checkProcessing, getEngine, setProcessing

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • BillboardSetInitializer

      public BillboardSetInitializer(boolean setUp, com.badlogic.ashley.core.Family family, int priority)
  • Method Details

    • initializeEntity

      public void initializeEntity(com.badlogic.ashley.core.Entity entity)
      Description copied from interface: EntityInitializer
      Contains the initialization of this entity before the scene graph structure has been constructed, or the entity is in the index. Typically, this adds resources to load via the asset manager, and initializes basic attributes.
      Parameters:
      entity - The entity.
    • setUpEntity

      public void setUpEntity(com.badlogic.ashley.core.Entity entity)
      Description copied from interface: EntityInitializer
      Contains the set-up of this entity, after the entity has been added to the scene graph, it is in the index, and assets have been loaded. Typically, this fetches loaded assets from the asset manager, and completes the initialization.
      Parameters:
      entity - The entity.
    • reloadData

      public void reloadData(com.badlogic.ashley.core.Entity entity)
    • transformData

      public void transformData(com.badlogic.ashley.core.Entity entity)