Class ParticleInitializer

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

public class ParticleInitializer extends AbstractInitSystem implements IObserver
  • Constructor Details

    • ParticleInitializer

      public ParticleInitializer(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.
      Specified by:
      initializeEntity in interface EntityInitializer
      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.
      Specified by:
      setUpEntity in interface EntityInitializer
      Parameters:
      entity - The entity.
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.