I'm trying to inherit from a registered class but I know that I must write some proxy methods and do it that way.
I have read the topic from the user manual but I am a little confused on how the factory function works in the example.
http://www.angelcode.com/angelscript/sdk/docs/manual/doc_adv_inheritappclass.html
// A factory function that can be used by the script side to create
static FooScripted *Factory();
There is no actual implementation of the factory so i'm a bit confused on how the constructor is called with
"asIScriptObject *obj"
Becausse that is something that I will need at some point when calling inherited functions.
From the looks of it nothing is passed from the actual script code when doing
@m_obj = FooScripted_t();
So i'm wondering how I should implement the factory function so this example would work.
Thank you!