Oolite 1.91.0.7645-241119-222d325
|
import "OOFlasherEntity.h"
import "OOJSFlasher.h"
import "OOJSEntity.h"
import "OOJSVector.h"
import "OOJavaScriptEngine.h"
import "EntityOOJavaScriptExtensions.h"
import "ShipEntity.h"
import "OOVisualEffectEntity.h"
Go to the source code of this file.
Macros | |
#define | GET_THIS_FLASHER(THISENT) |
Enumerations | |
enum | { kFlasher_active , kFlasher_color , kFlasher_fraction , kFlasher_frequency , kFlasher_phase , kFlasher_size } |
Functions | |
static BOOL | JSFlasherGetFlasherEntity (JSContext *context, JSObject *jsobj, OOFlasherEntity **outEntity) |
static JSBool | FlasherGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | FlasherSetProperty (JSContext *context, JSObject *this, jsid propID, JSBool strict, jsval *value) |
static JSBool | FlasherRemove (JSContext *context, uintN argc, jsval *vp) |
void | InitOOJSFlasher (JSContext *context, JSObject *global) |
Variables | |
static JSObject * | sFlasherPrototype |
static JSClass | sFlasherClass |
static JSPropertySpec | sFlasherProperties [] |
static JSFunctionSpec | sFlasherMethods [] |
#define GET_THIS_FLASHER | ( | THISENT | ) |
Definition at line 282 of file OOJSFlasher.m.
Referenced by OOFlasherEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:.
anonymous enum |
Enumerator | |
---|---|
kFlasher_active | |
kFlasher_color | |
kFlasher_fraction | |
kFlasher_frequency | |
kFlasher_phase | |
kFlasher_size |
Definition at line 62 of file OOJSFlasher.m.
|
static |
Definition at line 148 of file OOJSFlasher.m.
References OOFlasherEntity::color, JSFlasherGetFlasherEntity(), kFlasher_active, kFlasher_color, kFlasher_fraction, kFlasher_frequency, kFlasher_phase, kFlasher_size, nil, OOColor::normalizedArray, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), OOJSValueFromNativeObject(), and sFlasherProperties.
|
static |
Definition at line 288 of file OOJSFlasher.m.
|
static |
Definition at line 194 of file OOJSFlasher.m.
References OOColor::colorWithDescription:, JSFlasherGetFlasherEntity(), kFlasher_active, kFlasher_color, kFlasher_fraction, kFlasher_frequency, kFlasher_phase, kFlasher_size, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOFlasherEntity::setActive:, OOLightParticleEntity::setColor:, OOLightParticleEntity::setDiameter:, OOFlasherEntity::setFraction:, OOFlasherEntity::setFrequency:, OOFlasherEntity::setPhase:, and sFlasherProperties.
void InitOOJSFlasher | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 96 of file OOJSFlasher.m.
References JSEntityClass(), JSEntityPrototype(), OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSRegisterSubclass(), OOJSUnconstructableConstruct(), sFlasherClass, sFlasherMethods, sFlasherProperties, and sFlasherPrototype.
|
static |
Definition at line 104 of file OOJSFlasher.m.
References nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by FlasherGetProperty(), and FlasherSetProperty().
|
static |
Definition at line 45 of file OOJSFlasher.m.
Referenced by InitOOJSFlasher().
|
static |
Definition at line 87 of file OOJSFlasher.m.
Referenced by InitOOJSFlasher().
|
static |
Definition at line 74 of file OOJSFlasher.m.
Referenced by FlasherGetProperty(), FlasherSetProperty(), and InitOOJSFlasher().
|
static |
Definition at line 34 of file OOJSFlasher.m.
Referenced by InitOOJSFlasher().