Click or drag to resize
GameBlueprintUtils.CreateEntity Method (Game, Blueprint, AttributeTable)
Searches for the specified blueprint and creates an entity out of it.

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,
	Blueprint blueprint,
	AttributeTable configuration
)

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: 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