Click or drag to resize
DigitalRuneGamePropertyT Structure
Represents a property of a GameObject

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public struct GameProperty<T> : IGameProperty, 
	INamedObject, IEquatable<GameProperty<T>>

Type Parameters

T
The type of the property value.

The GamePropertyT type exposes the following members.

Methods
  NameDescription
Public methodAsAnimatable
Returns an IAnimatablePropertyT that can be used to animate this GamePropertyT.
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(GamePropertyT)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodParse
Parses the specified string and updates the Value.
Public methodReset
Removes any local values and sets the property to its default value.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two GamePropertyTs to determine whether they are the same.
Public operatorStatic member(GamePropertyT to T)
Returns the value of the specified GamePropertyT.
Public operatorStatic memberInequality
Compares two GamePropertyTs to determine whether they are different.
Top
Properties
  NameDescription
Public propertyChange
Event handler that automatically changes the value of the property.
Public propertyHasLocalValue
Gets a value indicating whether this property has a local value.
Public propertyMetadata
Gets the property metadata.
Public propertyName
Gets the name.
Public propertyOwner
Gets the game object that owns this property.
Public propertyValue
Gets or sets the value.
Top
Events
  NameDescription
Public eventChanged
Occurs when the Value changed.
Public eventChanging
Occurs when the Value is about to change.
Top
Explicit Interface Implementations
Remarks
Animation: Game objects and their game object properties can be animated using the DigitalRune Animation system. In order to animate a specific property AsAnimatable needs to be called. This method returns an IAnimatablePropertyT for the given property which can be passed to the animation system.
See Also