![]() | BlueprintManager Class |
Namespace: Slash.ECS.Blueprints
The BlueprintManager type exposes the following members.
Name | Description | |
---|---|---|
![]() | BlueprintManager |
Default constructor.
|
![]() | BlueprintManager(BlueprintManager) |
Copy constructor.
|
Name | Description | |
---|---|---|
![]() | Blueprints |
All registered blueprints.
|
Name | Description | |
---|---|---|
![]() | AddBlueprint |
Adds the blueprint with the specified id to the manager.
|
![]() | AddBlueprints |
Adds all blueprints of the passed manager to this one.
|
![]() | ChangeBlueprintId |
Changes the id under which a blueprint is stored.
|
![]() | ClearBlueprints |
Removes all blueprints from the manager.
|
![]() | ContainsBlueprint |
Checks if the blueprint manager contains the blueprint with the specified id.
|
![]() | Equals | (Overrides ObjectEquals(Object).) |
![]() | GetBlueprint |
Searches for the blueprint with the specified id. Throws a KeyNotFoundException if not found.
|
![]() | GetEnumerator |
Gets an enumerator over all registered blueprints.
|
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.) |
![]() | GetSchema |
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the
XmlSchemaProviderAttribute
to the class.
|
![]() | ReadXml |
Generates an object from its XML representation.
|
![]() | RemoveBlueprint |
Removes the blueprint with the specified id. Returns if the blueprint was removed.
|
![]() | ToString |
Returns a string that represents the current object.
(Overrides ObjectToString.) |
![]() | TryGetBlueprint |
Searches for the blueprint with the specified id. Returns if the blueprint was found.
|
![]() | WriteXml |
Converts an object into its XML representation.
|
Name | Description | |
---|---|---|
![]() | BlueprintsChanged |
Raised when blueprints of this manager changed.
|
Name | Description | |
---|---|---|
![]() | ContainsAllBlueprint |
Checks whether the first sequence contains all elements of the second one.
(Defined by EnumerableExtensionMethods.) |
![]() | IsNullOrEmpty | Overloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.) |
![]() | IsNullOrEmptyBlueprint | Overloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomItemBlueprint |
Returns a random item from the specified sequence.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomItemOrDefaultBlueprint | Overloaded.
Returns a random item from the specified sequence or the default value of the
specified type if the sequence is null or empty.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomItemOrDefaultBlueprint(Blueprint) | Overloaded.
Returns a random item from the specified sequence or the specified default value if
the sequence is null or empty.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomSelectBlueprint | Overloaded.
Selects a random item from the specified enumerable.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomSelectBlueprint(Int32) | Overloaded.
Selects the specified number of random items from the specified enumerable.
If the number of items in the enumerable is smaller than the specified number of selections,
the enumerable itself is returned.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomSelectBlueprint(Int32, ActionBlueprint) | Overloaded.
Executes the specified action for the specified number of random items from the specified enumerable.
(Defined by EnumerableExtensionMethods.) |
![]() | RandomWeightedItemBlueprint |
Returns a random weighted item from the specified sequence.
Uses the specified function to get the weight of an item.
Idea was taken from http://stackoverflow.com/questions/17912005/quick-way-of-selecting-a-random-item-from-a-list-with-varying-probabilities-ba
(Defined by EnumerableExtensionMethods.) |