Game entity. It usually aggregates multiple EntityComponent
More...
Game entity. It usually aggregates multiple EntityComponent
Definition at line 28 of file Entity.cs.
SiliconStudio.Paradox.EntityModel.Entity.Entity |
( |
| ) |
|
SiliconStudio.Paradox.EntityModel.Entity.Entity |
( |
string |
name | ) |
|
Create a new Entity instance having the provided name.
- Parameters
-
name | The name to give to the entity |
Definition at line 50 of file Entity.cs.
SiliconStudio.Paradox.EntityModel.Entity.Entity |
( |
Vector3 |
position, |
|
|
string |
name = null |
|
) |
| |
Create a new Entity instance having the provided name and initial position.
- Parameters
-
position | The initial position of the entity |
name | The name to give to the entity |
Definition at line 60 of file Entity.cs.
void SiliconStudio.Paradox.EntityModel.Entity.Add |
( |
EntityComponent |
component | ) |
|
Sets a component with the specified key.
- Template Parameters
-
- Parameters
-
key | The key. |
value | The value. |
- Exceptions
-
System.ArgumentNullException | key |
Definition at line 162 of file Entity.cs.
T SiliconStudio.Paradox.EntityModel.Entity.Get< T > |
( |
| ) |
|
Gets a component by the specified key.
- Template Parameters
-
- Returns
- The component or null if does no exist
- Exceptions
-
System.ArgumentNullException | key |
- Type Constraints
-
T | : | EntityComponent | |
T | : | new() | |
Definition at line 137 of file Entity.cs.
T SiliconStudio.Paradox.EntityModel.Entity.Get< T > |
( |
PropertyKey< T > |
key | ) |
|
Gets a component by the specified key.
- Template Parameters
-
- Parameters
-
- Returns
- The component or null if does no exist
- Exceptions
-
System.ArgumentNullException | key |
Definition at line 149 of file Entity.cs.
T SiliconStudio.Paradox.EntityModel.Entity.GetOrCreate< T > |
( |
| ) |
|
Gets or create a component with the specified key.
- Template Parameters
-
T | Type of the entity component |
- Returns
- A new or existing instance of {T}
- Type Constraints
-
T | : | EntityComponent | |
T | : | new() | |
Definition at line 89 of file Entity.cs.
T SiliconStudio.Paradox.EntityModel.Entity.GetOrCreate< T > |
( |
PropertyKey< T > |
key | ) |
|
Gets or create a component with the specified key.
- Template Parameters
-
T | Type of the entity component |
- Parameters
-
- Returns
- A new or existing instance of {T}
- Type Constraints
-
T | : | EntityComponent | |
T | : | new() | |
Definition at line 108 of file Entity.cs.
void SiliconStudio.Paradox.EntityModel.Entity.Set< T > |
( |
PropertyKey< T > |
key, |
|
|
T |
value |
|
) |
| |
Sets a component with the specified key.
- Template Parameters
-
- Parameters
-
key | The key. |
value | The value. |
- Exceptions
-
System.ArgumentNullException | key |
Definition at line 176 of file Entity.cs.
override string SiliconStudio.Paradox.EntityModel.Entity.ToString |
( |
| ) |
|
The documentation for this class was generated from the following file:
- D:/Projects/Bitbucket Hosting/DoxygenFilesAndSources/Paradox v1.0.0 beta06/sources/engine/SiliconStudio.Paradox.Engine/EntityModel/Entity.cs