44 JS_StrictPropertyStub,
63 NSString *scriptName =
nil;
66 if (!JSID_IS_STRING(propID))
return YES;
69 if (scriptName !=
nil)
79 *value = [script oo_jsValueInContext:context];
107 NSArray *names =
nil;
108 NSEnumerator *nameEnum =
nil;
109 NSString *name =
nil;
111 names = [OOPlayerForScripting() worldScriptNames];
113 for (nameEnum = [names objectEnumerator]; (name = [nameEnum nextObject]); )
#define OOJS_NATIVE_ENTER(cx)
PlayerEntity * OOPlayerForScripting(void)
static JSBool WorldScriptsEnumerate(JSContext *cx, JSObject *obj)
void InitOOJSWorldScripts(JSContext *context, JSObject *global)
static JSClass sWorldScriptsClass
static JSBool WorldScriptsGetProperty(JSContext *context, JSObject *this, jsid propID, jsval *value)
#define OOJS_PROP_READONLY
#define OOJS_PROP_READONLY_CB
NSString * OOStringFromJSString(JSContext *context, JSString *string)
NSDictionary * worldScriptsByName()