 | GameBlueprintUtilsCreateEntity Method (Game, String) |
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.GamesAssembly: Slash.Application (in Slash.Application.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static int CreateEntity(
this Game game,
string blueprintId
)
<ExtensionAttribute>
Public Shared Function CreateEntity (
game As Game,
blueprintId As String
) As Integer
public:
[ExtensionAttribute]
static int CreateEntity(
Game^ game,
String^ blueprintId
)
[<ExtensionAttribute>]
static member CreateEntity :
game : Game *
blueprintId : string -> int
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.
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