Inheriting from application registered class

Started by
12 comments, last by WitchLord 2 hours, 7 minutes ago

I'll try to do the update in time for the next release (probably a few months away, maybe less).

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

While we are waiting for next release can you give an idea how to rework sample?

Let the power of C++ be with you.

The idea I have in my head is to add logic in the C++ FooScripted::CallMe to detect when the function is called from the script counter part, and in this case not forward the call back to the script.

This would be implemented by calling asGetActiveContext, and if there is one determine if the context is currently calling the C++ native FooScripted::CallMe function with the object == this.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement