Example #1
0
void Transform::load(){
	for(NodeChild * child : children){
		NodeLoadable * nl = child->asNodeLoadable();
		if(nl != nullptr){
			nl->load();
		}
	}

	NodeLoadable::load();
}
Example #2
0
void Entity::load(){
	for(NodeChild * child : children){
		NodeLoadable * nl = dynamic_cast<NodeLoadable *>(child);
		if(nl != nullptr){
			nl->load();	
		}
	}
	
	NodeLoadable::load();
}