Click or drag to resize
BlueprintManager Class
Manager that maps blueprint ids to blueprints.
Inheritance Hierarchy
SystemObject
  Slash.ECS.BlueprintsBlueprintManager

Namespace: Slash.ECS.Blueprints
Assembly: Slash.ECS.Blueprints (in Slash.ECS.Blueprints.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[SerializableAttribute]
public sealed class BlueprintManager : IBlueprintManager, 
	IEnumerable<Blueprint>, IEnumerable, IXmlSerializable

The BlueprintManager type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBlueprints
All registered blueprints.
Top
Methods
  NameDescription
Public methodAddBlueprint
Adds the blueprint with the specified id to the manager.
Public methodAddBlueprints
Adds all blueprints of the passed manager to this one.
Public methodChangeBlueprintId
Changes the id under which a blueprint is stored.
Public methodClearBlueprints
Removes all blueprints from the manager.
Public methodContainsBlueprint
Checks if the blueprint manager contains the blueprint with the specified id.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Public methodGetBlueprint
Searches for the blueprint with the specified id. Throws a KeyNotFoundException if not found.
Public methodGetEnumerator
Gets an enumerator over all registered blueprints.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetSchema
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.
Public methodReadXml
Generates an object from its XML representation.
Public methodRemoveBlueprint
Removes the blueprint with the specified id. Returns if the blueprint was removed.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodTryGetBlueprint
Searches for the blueprint with the specified id. Returns if the blueprint was found.
Public methodWriteXml
Converts an object into its XML representation.
Top
Events
  NameDescription
Public eventBlueprintsChanged
Raised when blueprints of this manager changed.
Top
Extension Methods
  NameDescription
Public Extension MethodContainsAllBlueprint
Checks whether the first sequence contains all elements of the second one.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodIsNullOrEmptyOverloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodIsNullOrEmptyBlueprintOverloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomItemBlueprint
Returns a random item from the specified sequence.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomItemOrDefaultBlueprintOverloaded.
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.)
Public Extension MethodRandomItemOrDefaultBlueprint(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.)
Public Extension MethodRandomSelectBlueprintOverloaded.
Selects a random item from the specified enumerable.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomSelectBlueprint(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.)
Public Extension MethodRandomSelectBlueprint(Int32, ActionBlueprint)Overloaded.
Executes the specified action for the specified number of random items from the specified enumerable.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomWeightedItemBlueprint
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.)
Top
See Also