Click or drag to resize
GameBlueprintUtilsCreateEntity Method (Game, String, AttributeTable)
Searches for the blueprint with the specified id and creates an entity out of it. If the blueprint is used several times, consider to fetch the blueprint from the game's blueprint manager once and use it to create the entities.

Namespace: Slash.Application.Games
Assembly: Slash.Application (in Slash.Application.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static int CreateEntity(
	this Game game,
	string blueprintId,
	AttributeTable configuration
)

Parameters

game
Type: Slash.Application.GamesGame
Game to get the blueprint from and create the entity in.
blueprintId
Type: SystemString
Id of blueprint to use.
configuration
Type: Slash.Collections.AttributeTablesAttributeTable
Configuration to initialize the entity from.

Return Value

Type: Int32
Id 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