Skip to content

ComponentAccessor

Description

Let's you access components on applicable nodes.

Methods

void detach_component ( Node node )
Component get_component ( Node node )
bool has_component ( Node node )
bool is_applicable ( Node node )

Method Descriptions

bool is_applicable ( Node node ):
Check whether this Component is applicable to node.

bool has_component ( Node node ):
Checks whether this Component is attached to node.

Component get_component ( Node node ):
Returns the corresponding Component attached to node or creates one if necessary.

void detach_component ( Node node ):
Will detach a Component from node and call Component#component_node_removed just before.