C4 Engine
C4 Engine API Documentation

class PropertyObject

Defined in:  C4Properties.h
A shared storage container for properties.
Definition

class PropertyObject : public Object

Member Functions
PropertyObject::GetProperty Returns the property of a given type that is stored in a property object.
PropertyObject::GetFirstProperty Returns the first property stored in a property object.
PropertyObject::AddProperty Stores a property in a property object.
Constructor

PropertyObject();

Description
The PropertyObject class is a shared storage container for properties. It is attached to a node so that specific properties can be shared among all instances of that node. Each type of property should either always be attached directly to a node or always be stored in a property object. The Property::SharedProperty function should be overridden by property subclasses to indicate which kind of property they are.
Base Classes
Object A PropertyObject is an object that can be shared by multiple nodes.
See Also

Property

Node::GetPropertyObject

Node::SetPropertyObject