Jump to content
  • Advertisement
Sign in to follow this  
Mildanach

Registering inheritance

This topic is 4275 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all, I've got a question as in subject - how to notify AS engine that registered class inherits from another one? I'd like to call function f(Base@) in script and pass an object of derived type.

Share this post


Link to post
Share on other sites
Advertisement
This feature hasn't been implemented yet. Maybe I'll be able to implement it for the next version (not the one currently in development but the one after that).

Until then you can register a function that takes a handle to the derived object and returns a handle to the base object.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!