PackagePBLabs.Engine.Entity
Classpublic class PropertyReference
ImplementsISerializable

A property reference stores the information necessary to lookup a property on an entity.

These are used to facilitate retrieving information from entities without requiring a specific interface to be implemented. For example, a component that handles display information would need to retrieve spatial information from a spatial component. The spatial component can store its information however it sees fit. The display component would have a PropertyReference member that would be initialized to the path of the desired property on the spatial component.

See also

IEntity.DoesPropertyExist()
IEntity.GetProperty()
IEntity.SetProperty()
Property System Overview


Public Properties
 PropertyDefined by
  CachedLookup : Array
PropertyReference
  Property : String
The path to the property that this references.
PropertyReference
Public Methods
 MethodDefined by
  
PropertyReference(property:String = null)
PropertyReference
  
Deserialize(xml:XML):*
Deserializes the object from xml.
PropertyReference
  
Serialize(xml:XML):void
Serializes the object to XML.
PropertyReference
Property detail
CachedLookupproperty
public var CachedLookup:Array
Propertyproperty 
Property:String  [read-write]

The path to the property that this references.

Implementation
    public function get Property():String
    public function set Property(value:String):void
Constructor detail
PropertyReference()constructor
public function PropertyReference(property:String = null)Parameters
property:String (default = null)
Method detail
Deserialize()method
public function Deserialize(xml:XML):*

Deserializes the object from xml. The format of the xml passed is custom, depending on the way the object was serialized with the Serialize method.

Parameters
xml:XML — The xml containing the serialized definition of the class.

Returns
* — The deserialized object. Usually 'this' should be returned, but in some cases it may be useful to return something else. The Enumerable class does this to force all values to be a member of the enumeration.
Serialize()method 
public function Serialize(xml:XML):void

Serializes the object to XML. This should not include the main tag defining the class itself.

Parameters
xml:XML — The xml object to which the serialization of this class should be added. This xml object is a single tag containing the main class definition, so only children of this class should be added to it.