示例#1
0
 /**
  * Faster adding of components into the entity. Not neccessery to use this, but in some cases you
  * might need the extra performance.
  *
  * @param component the component to add
  * @param type of the component
  * @return this entity for chaining.
  */
 public Entity addComponent(Component component, ComponentType type) {
   componentManager.addComponent(this, type, component);
   return this;
 }