Oolite 1.91.0.7646-241128-10e222e
|
import <Foundation/Foundation.h>
#include <jsapi.h>
Go to the source code of this file.
Functions | |
void | InitOOJSMission (JSContext *context, JSObject *global) |
void | MissionRunCallback (void) |
void InitOOJSMission | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 108 of file OOJSMission.m.
References OOJS_PROP_READONLY, OOJSAddGCValueRoot, OOJSUnconstructableConstruct(), sCallbackFunction, sCallbackThis, sMissionClass, sMissionMethods, sMissionObject, and sMissionProperties.
void MissionRunCallback | ( | void | ) |
Definition at line 122 of file OOJSMission.m.
References OOJavaScriptEngine::callJSFunction:forObject:argc:argv:result:, kOOLogException, nil, OOJSAcquireContext(), OOJSAddGCObjectRoot, OOJSAddGCValueRoot, OOJSRelinquishContext(), OOJSValueFromNativeObject(), OOLog, OOPlayerForScripting(), OOJSScript::popScript:, OOJSScript::pushScript:, sCallbackFunction, sCallbackScript, sCallbackThis, PlayerEntity::setMissionChoice:keyPress:withEvent:, and OOJavaScriptEngine::sharedEngine.