|
WoopWoop-Docs
|
Class responsible for creating entities and configuring their properties. More...
Public Member Functions | |||
| EntityCreator () | |||
| Initializes a new instance of the EntityCreator class. | |||
| Entity | Create () | ||
| Creates and returns the entity configured by this creator. | |||
| EntityCreator | AddComponent< T > () | ||
| Adds a component of type T to the entity. | |||
| EntityCreator | SetPosition (Vector2 position) | ||
| Sets the position of the entity. | |||
| EntityCreator | SetScale (Vector2 scale) | ||
| Sets the scale of the entity. | |||
| EntityCreator | SetScale (float width, float height) | ||
| Sets the scale of the entity. | |||
| EntityCreator | SetTransformByRectangle (Rectangle rectangle) | ||
| Sets the position and scale of the entity based on a rectangle. | |||
| EntityCreator | SetAngle (float angle) | ||
| Sets the angle of the entity. | |||
| EntityCreator | Tag (string tag) | ||
Sets the tag for the entity.
| |||
| EntityCreator | SetEnabled (bool enabled) | ||
| Sets the initial state of the entity. | |||
Private Attributes | |
| Entity | entityToCreate |
Class responsible for creating entities and configuring their properties.
| WoopWoop.Entity.EntityCreator.EntityCreator | ( | ) |
Initializes a new instance of the EntityCreator class.
| EntityCreator WoopWoop.Entity.EntityCreator.AddComponent< T > | ( | ) |
Adds a component of type T to the entity.
| T | The type of component to add. |
| T | : | Component | |
| T | : | new() |
| Entity WoopWoop.Entity.EntityCreator.Create | ( | ) |
Creates and returns the entity configured by this creator.
| EntityCreator WoopWoop.Entity.EntityCreator.SetAngle | ( | float | angle | ) |
Sets the angle of the entity.
| angle | The angle to set. |
| EntityCreator WoopWoop.Entity.EntityCreator.SetEnabled | ( | bool | enabled | ) |
Sets the initial state of the entity.
| enabled | The state of the entity |
| EntityCreator WoopWoop.Entity.EntityCreator.SetPosition | ( | Vector2 | position | ) |
Sets the position of the entity.
| position | The position to set. |
| EntityCreator WoopWoop.Entity.EntityCreator.SetScale | ( | float | width, |
| float | height ) |
Sets the scale of the entity.
| width | The width to set. |
| height | The height to set. |
| EntityCreator WoopWoop.Entity.EntityCreator.SetScale | ( | Vector2 | scale | ) |
Sets the scale of the entity.
| scale | The scale to set. |
| EntityCreator WoopWoop.Entity.EntityCreator.SetTransformByRectangle | ( | Rectangle | rectangle | ) |
Sets the position and scale of the entity based on a rectangle.
| rectangle | The rectangle defining position and scale. |
| EntityCreator WoopWoop.Entity.EntityCreator.Tag | ( | string | tag | ) |
Sets the tag for the entity.
| tag | The requested tag |
|
private |