Oolite 1.91.0.7644-241112-7f5034b
|
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.