Class Component.Generic<T>

java.lang.Object
tripleplay.entity.Component
tripleplay.entity.Component.Generic<T>
Enclosing class:
Component

public static final class Component.Generic<T> extends Component
A component implementation for arbitrary objects.
  • Constructor Details

    • Generic

      public Generic(World world)
  • Method Details

    • get

      public T get(int entityId)
      Returns the value of this component for entityId.
    • set

      public void set(int entityId, T value)
      Updates the value of this component for entityId.