C4 Engine
C4 Engine API Documentation

Property::SharedProperty

Defined in:  C4Properties.h
Returns a boolean value indicating whether a property is supposed to be shared.
Prototype

virtual bool SharedProperty(voidconst;

Description
The SharedProperty function should be overridden by any Property subclass that implements a shared property. Whereas ordinary properties are attached directly to a node, shared properties are stored in a PropertyObject that is shared by multiple nodes. When a node is copied, properties attached directly to the node are copied to the new node, but the property object is simply shared by the new node without any copying.

The SharedProperty function should return true if the property should be stored in a property object, and it should return false if the property should be attached directly to a node. The default implementation returns false.
See Also

PropertyObject