Oolite 1.91.0.7646-241128-10e222e
|
import "OOJSMissionVariables.h"
import "OOJavaScriptEngine.h"
import "OOIsNumberLiteral.h"
import "OOJSPlayer.h"
Go to the source code of this file.
Functions | |
static NSString * | KeyForPropertyID (JSContext *context, jsid propID) |
static JSBool | MissionVariablesDeleteProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | MissionVariablesGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | MissionVariablesSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | MissionVariablesEnumerate (JSContext *context, JSObject *object, JSIterateOp enumOp, jsval *state, jsid *idp) |
static id | MissionVariablesConverter (JSContext *context, JSObject *object) |
void | InitOOJSMissionVariables (JSContext *context, JSObject *global) |
Variables | |
static JSClass | sMissionVariablesClass |
void InitOOJSMissionVariables | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 71 of file OOJSMissionVariables.m.
References MissionVariablesConverter(), OOJS_PROP_READONLY, OOJSRegisterObjectConverter(), and sMissionVariablesClass.
|
static |
Definition at line 35 of file OOJSMissionVariables.m.
References nil, and OOStringFromJSString().
Referenced by MissionVariablesDeleteProperty(), MissionVariablesGetProperty(), and MissionVariablesSetProperty().
|
static |
Definition at line 83 of file OOJSMissionVariables.m.
Referenced by InitOOJSMissionVariables().
|
static |
Definition at line 90 of file OOJSMissionVariables.m.
References KeyForPropertyID(), OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOPlayerForScripting(), and PlayerEntity::setMissionVariable:forKey:.
|
static |
Definition at line 162 of file OOJSMissionVariables.m.
References count, nil, OOJS_NATIVE_ENTER, and OOJS_NATIVE_EXIT.
|
static |
Definition at line 107 of file OOJSMissionVariables.m.
References KeyForPropertyID(), PlayerEntity::missionVariableForKey:, nil, OOIsNumberLiteral(), OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSValueFromNativeObject(), and OOPlayerForScripting().
|
static |
Definition at line 136 of file OOJSMissionVariables.m.
References KeyForPropertyID(), nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportError(), OOPlayerForScripting(), OOStringFromJSID(), OOStringFromJSValue(), and PlayerEntity::setMissionVariable:forKey:.
|
static |
Definition at line 55 of file OOJSMissionVariables.m.
Referenced by InitOOJSMissionVariables().