39static JSBool
ExhaustPlumeSetProperty(JSContext *context, JSObject *
this, jsid propID, JSBool strict, jsval *value);
57 JSCLASS_NO_OPTIONAL_MEMBERS
100 if (outEntity == NULL)
return NO;
103 result = OOJSEntityGetEntity(context, jsobj, &entity);
104 if (!result)
return NO;
115@implementation OOExhaustPlumeEntity (OOJavaScriptExtensions)
117- (void)getJSClass:(JSClass **)outClass andPrototype:(JSObject **)outPrototype
126 return @"ExhaustPlume";
139 if (!JSID_IS_INT(propID))
return YES;
147 if (entity ==
nil) { *value = JSVAL_VOID;
return YES; }
149 switch (JSID_TO_INT(propID))
168 if (!JSID_IS_INT(propID))
return YES;
176 if (entity ==
nil)
return YES;
178 switch (JSID_TO_INT(propID))
202#define GET_THIS_EXHAUSTPLUME(THISENT) do { \
203 if (EXPECT_NOT(!JSExhaustPlumeGetExhaustPlumeEntity(context, OOJS_THIS, &THISENT))) return NO; \
204 if (OOIsStaleEntity(THISENT)) OOJS_RETURN_VOID; \
#define OOJS_PROFILE_EXIT
#define OOJS_NATIVE_ENTER(cx)
#define OOJS_PROFILE_ENTER
OOINLINE JSClass * JSEntityClass(void)
OOINLINE JSObject * JSEntityPrototype(void)
static JSBool ExhaustPlumeGetProperty(JSContext *context, JSObject *this, jsid propID, jsval *value)
#define GET_THIS_EXHAUSTPLUME(THISENT)
void InitOOJSExhaustPlume(JSContext *context, JSObject *global)
static JSPropertySpec sExhaustPlumeProperties[]
static BOOL JSExhaustPlumeGetExhaustPlumeEntity(JSContext *context, JSObject *jsobj, OOExhaustPlumeEntity **outEntity)
static JSBool ExhaustPlumeRemove(JSContext *context, uintN argc, jsval *vp)
static JSClass sExhaustPlumeClass
static JSObject * sExhaustPlumePrototype
static JSBool ExhaustPlumeSetProperty(JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value)
static JSFunctionSpec sExhaustPlumeMethods[]
BOOL JSValueToVector(JSContext *context, jsval value, Vector *outVector) NONNULL_FUNC
BOOL VectorToJSValue(JSContext *context, Vector vector, jsval *outValue) NONNULL_FUNC
#define OOJS_PROP_READWRITE_CB
void OOJSRegisterObjectConverter(JSClass *theClass, OOJSClassConverterCallback converter)
OOINLINE jsval OOJSValueFromNativeObject(JSContext *context, id object)
void OOJSObjectWrapperFinalize(JSContext *context, JSObject *this)
void OOJSReportBadPropertySelector(JSContext *context, JSObject *thisObj, jsid propID, JSPropertySpec *propertySpec)
JSBool OOJSUnconstructableConstruct(JSContext *context, uintN argc, jsval *vp)
void OOJSRegisterSubclass(JSClass *subclass, JSClass *superclass)
void OOJSReportBadPropertyValue(JSContext *context, JSObject *thisObj, jsid propID, JSPropertySpec *propertySpec, jsval value)
id OOJSBasicPrivateObjectConverter(JSContext *context, JSObject *object)
BOOL isVisibleToScripts()
NSString * oo_jsClassName()
void setScale:(Vector scale)
void removeExhaust:(OOExhaustPlumeEntity *exhaust)