Class GKComponentSystem<T extends GKComponent>

All Implemented Interfaces:
Iterable<T>, NSFastEnumeration, NSObjectProtocol, ObjCProtocol

public class GKComponentSystem<T extends GKComponent>
extends NSObject
implements NSFastEnumeration, Iterable<T>
Since:
Available in iOS 9.0 and later.
  • Constructor Details

    • GKComponentSystem

      protected GKComponentSystem​(NSObject.Handle h, long handle)
    • GKComponentSystem

      protected GKComponentSystem​(NSObject.SkipInit skipInit)
    • GKComponentSystem

      public GKComponentSystem​(Class<? extends T> cls)
  • Method Details

    • getComponentClass

      public Class<? extends T> getComponentClass()
    • getComponents

      public NSArray<T> getComponents()
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T extends GKComponent>
    • get

      protected T get​(long idx)
    • init

      protected long init​(Class<? extends T> cls)
    • addComponent

      public void addComponent​(T component)
    • addComponent

      public void addComponent​(GKEntity entity)
    • removeComponent

      public void removeComponent​(GKEntity entity)
    • removeComponent

      public void removeComponent​(T component)
    • update

      public void update​(double seconds)
    • classForGenericArgumentAtIndex

      public Class<?> classForGenericArgumentAtIndex​(long index)