C4 Engine
C4 Engine API Documentation

Property::ValidNode

Defined in:  C4Properties.h
Returns a boolean value indicating whether a property can be assigned to a particular node.
Prototype

static bool ValidNode(const Node *node);

Description
The ValidNode function should be redefined by property subclasses. Its implementation should examine the node pointed to by the node parameter and return true if the property type can be used with the node. If the property type cannot be used, the ValidNode function should return false. If the ValidNode function is not redefined for a registered subclass of the Property class, then that property type can be assigned to any node.