示例#1
0
 /**
  * Returns a bag of all components this entity has. You need to reset the bag yourself if you
  * intend to fill it more than once.
  *
  * @param fillBag the bag to put the components into.
  * @return the fillBag with the components in.
  */
 public Bag<Component> getComponents(Bag<Component> fillBag) {
   return componentManager.getComponentsFor(this, fillBag);
 }