Whats the best way to get around this.
I have a C++ component class where some C++ implemented components inherit from.
class Component;
class Transform : public Component;
// etc...
When it was all just C++ only the application would also create and inherit from this component. However I faked the Component class in AS by doing.
class ASComponent
{
Component @baseImpl; // C++ component
}
The issue comes when I wish to retrieve components as ASComponent doesn't inherit from Component.
Component@ getComponent(string componentName);
I doubt I'm the first to run into this issue.