Advertisement

RegisterGlobalFunction()

Started by September 23, 2008 04:02 PM
1 comment, last by Seppl 16 years, 2 months ago
Hi. I'm working on a game using AS for scripting. I want the map editor to save bytecode to the map files and the game engine to load an execute it. The problem is, that I want to RegisterGlobalFunction()s of the game engine that the editor doesn't know of... Any idea?
Since the map editor isn't going to execute the scripts, you can register the engine's functions using null pointers, example:

engine->RegisterGlobalFunction("void function", asFUNCTION(0), asCALL_CDECL);




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
Thank you.

This topic is closed to new replies.

Advertisement