Use something like below to pass needed enumerators and constants to the AGS Editor using something like below for the Windows DLL.
const char* scriptHeader =
"//------------------------;\r\n"
"//add enum for ePOV here;\r\n"
"//------------------------;\r\n"
;
int AGS_EditorStartup(IAGSEditor* lpEditor)
{
// User has checked the plugin to use it in their game
// If it's an earlier version than what we need, abort.
if (lpEditor->version < 1)
return -1;
editor = lpEditor;
editor->RegisterScriptHeader(scriptHeader);
// Return 0 to indicate success
return 0;
}
Use something like below to pass needed enumerators and constants to the AGS Editor using something like below for the Windows DLL.