Skip to main content
GameDev.net gamedev.net
🔒 Locked

Registering inheritance

Started by Mildanach Oct 8, 2006 at 9:13 AM 1 replies 1.5k views
Original Post
Mildanach
Mildanach
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.
WitchLord
WitchLord
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.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
Mildanach
Mildanach
Thanks for advice.

happy coding,
Mike

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.