Class CampaignVariableObject<T>
public sealed class CampaignVariableObject<T> : CampaignVariable<T>, IEquatable<CampaignVariable<T>> where T : NwGameObject
Type Parameters
T
- Inheritance
-
CampaignVariableObject<T>
- Implements
- Inherited Members
- Extension Methods
Properties
- Value
Gets or sets the current value of this variable. Returns the default value of T if unassigned (null or 0).
Methods
- GetValue(Location)
Gets the object from the campaign database, and spawns it at the specified location.
- GetValue(NwGameObject)
Gets the object from the campaign database, and attempts to spawn it in the inventory of the specified object.
If the owner cannot carry the object, it will be spawned at the owner's current location.