 | GameBlueprintUtils.CreateEntity Method (Game, Blueprint, AttributeTable) |
Searches for the specified blueprint and creates an entity out of it.
Namespace: Slash.Application.GamesAssembly: Slash.Application (in Slash.Application.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static int CreateEntity(
this Game game,
Blueprint blueprint,
AttributeTable configuration
)
<ExtensionAttribute>
Public Shared Function CreateEntity (
game As Game,
blueprint As Blueprint,
configuration As AttributeTable
) As Integer
public:
[ExtensionAttribute]
static int CreateEntity(
Game^ game,
Blueprint^ blueprint,
AttributeTable^ configuration
)
[<ExtensionAttribute>]
static member CreateEntity :
game : Game *
blueprint : Blueprint *
configuration : AttributeTable -> int
Parameters
- game
- Type: Slash.Application.Games.Game
Game to create the entity in. - blueprint
- Type: Slash.ECS.Blueprints.Blueprint
Blueprint to use. - configuration
- Type: Slash.Collections.AttributeTables.AttributeTable
Configuration to initialize the entity from.
Return Value
Type:
Int32Id of created entity.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Game. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also