 | GameBlueprintUtilsCreateEntity Method (EntityManager, IBlueprintManager, String, AttributeTable) |
Creates an entity in the specified entity manager with the blueprint from the specified blueprint manager with the
specified id. Uses the specified configuration for initialization.
Namespace: Slash.Application.GamesAssembly: Slash.Application (in Slash.Application.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static int CreateEntity(
EntityManager entityManager,
IBlueprintManager blueprintManager,
string blueprintId,
AttributeTable configuration = null
)
Public Shared Function CreateEntity (
entityManager As EntityManager,
blueprintManager As IBlueprintManager,
blueprintId As String,
Optional configuration As AttributeTable = Nothing
) As Integer
public:
static int CreateEntity(
EntityManager^ entityManager,
IBlueprintManager^ blueprintManager,
String^ blueprintId,
AttributeTable^ configuration = nullptr
)
static member CreateEntity :
entityManager : EntityManager *
blueprintManager : IBlueprintManager *
blueprintId : string *
?configuration : AttributeTable
(* Defaults:
let _configuration = defaultArg configuration null
*)
-> int
Parameters
- entityManager
- Type: Slash.ECS.ComponentsEntityManager
Entity manager to create entity at. - blueprintManager
- Type: Slash.ECS.BlueprintsIBlueprintManager
Blueprint manager to use to find blueprint. - blueprintId
- Type: SystemString
Id of blueprint to use. - configuration (Optional)
- Type: Slash.Collections.AttributeTablesAttributeTable
Configuration to use for initialization of entity.
Return Value
Type:
Int32Id of created entity.
See Also