Sign in to follow this  
randomguy123451

inheritance of my C++ classes exposed in angelscript

Recommended Posts

(scenario1)say I want (defined in angelscript itself) class CAngelClassChild derived from parent class (defined in angelscript) CAngelClassParent , then i undestand that it is possible to do the inheritance.

(scenario2)
BUT if I have a class CClazzChild (in C++) which is inherited (in C++) from CClazzParent (defined in C++)
Now, i have exposed CClazzChild into angelscript as type CClazzChildInAngel
and exposed CClazzParent into angelscript as type CClazzParentInAngel

Then, How to make this inheritence relationship (inheritance done in C++) made explicit in the exposed classes/type inside Angelscript?
That is,What I will have to do so that CClazzChildInAngel is recognised as inherited (sort of) from CClazzParentInAngel


Share this post


Link to post
Share on other sites
That's covered in the [url=http://www.angelcode.com/angelscript/sdk/docs/manual/doc_adv_class_hierarchy.html]Class hierarchies[/url] section of the documentation.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this