 | GameBlueprintUtilsCreateEntities Method (Game, IEnumerableString) |
Searches for the blueprints with the specified ids and creates entities out of it.
If the blueprints are used several times, consider to fetch them from the game's
blueprint manager once and use them 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 List<int> CreateEntities(
this Game game,
IEnumerable<string> blueprintIds
)
<ExtensionAttribute>
Public Shared Function CreateEntities (
game As Game,
blueprintIds As IEnumerable(Of String)
) As List(Of Integer)
public:
[ExtensionAttribute]
static List<int>^ CreateEntities(
Game^ game,
IEnumerable<String^>^ blueprintIds
)
[<ExtensionAttribute>]
static member CreateEntities :
game : Game *
blueprintIds : IEnumerable<string> -> List<int>
Parameters
- game
- Type: Slash.Application.GamesGame
Game to get the blueprints from and create the entities in. - blueprintIds
- Type: System.Collections.GenericIEnumerableString
Ids of blueprints to use.
Return Value
Type:
ListInt32Ids of created entities.
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