Oolite 1.91.0.7646-241128-10e222e
|
Go to the source code of this file.
Functions | |
void | InitOOJSEntity (JSContext *context, JSObject *global) |
BOOL | JSValueToEntity (JSContext *context, jsval value, Entity **outEntity) |
OOINLINE JSClass * | JSEntityClass (void) |
OOINLINE JSObject * | JSEntityPrototype (void) |
BOOL | EntityFromArgumentList (JSContext *context, NSString *scriptClass, NSString *function, uintN argc, jsval *argv, Entity **outEntity, uintN *outConsumed) |
OOINLINE BOOL | OOIsPlayerStale (void) |
OOINLINE BOOL | OOIsStaleEntity (Entity *entity) |
Variables | |
JSClass | gOOEntityJSClass |
JSObject * | gOOEntityJSPrototype |
BOOL EntityFromArgumentList | ( | JSContext * | context, |
NSString * | scriptClass, | ||
NSString * | function, | ||
uintN | argc, | ||
jsval * | argv, | ||
Entity ** | outEntity, | ||
uintN * | outConsumed ) |
Definition at line 157 of file OOJSEntity.m.
References count, EXPECT_NOT, JSValueToEntity(), nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSReportWarning(), and OOLogGenericParameterError.
void InitOOJSEntity | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 139 of file OOJSEntity.m.
References gOOEntityJSClass, gOOEntityJSPrototype, OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSUnconstructableConstruct(), sEntityMethods, and sEntityProperties.
OOINLINE JSClass * JSEntityClass | ( | void | ) |
Definition at line 42 of file OOJSEntity.h.
References gOOEntityJSClass.
Referenced by InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSPlanet(), InitOOJSShip(), InitOOJSSun(), InitOOJSVisualEffect(), InitOOJSWaypoint(), InitOOJSWormhole(), JSObjectGetQuaternion(), and JSObjectGetVector().
OOINLINE JSObject * JSEntityPrototype | ( | void | ) |
Definition at line 43 of file OOJSEntity.h.
References gOOEntityJSPrototype.
Referenced by InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSPlanet(), InitOOJSShip(), InitOOJSSun(), InitOOJSVisualEffect(), InitOOJSWaypoint(), and InitOOJSWormhole().
BOOL JSValueToEntity | ( | JSContext * | context, |
jsval | value, | ||
Entity ** | outEntity ) |
Definition at line 146 of file OOJSEntity.m.
Referenced by ConsoleInspectEntity(), EntityFromArgumentList(), GetRelativeToAndRange(), PlayerShipSetProperty(), and ShipSetProperty().
OOINLINE BOOL OOIsPlayerStale | ( | void | ) |
Definition at line 65 of file OOJSEntity.h.
References gOOJSPlayerIfStale, and nil.
Referenced by PlayerSetEscapePodDestination(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipCancelDockingRequest(), PlayerShipDisengageAutopilot(), PlayerShipEngageAutopilotToStation(), PlayerShipGetProperty(), PlayerShipLaunch(), PlayerShipRemoveAllCargo(), PlayerShipRequestDockingClearance(), PlayerShipSetProperty(), and PlayerShipUseSpecialCargo().
Definition at line 71 of file OOJSEntity.h.
References gOOJSPlayerIfStale, and nil.
Referenced by EntityGetProperty(), EntitySetProperty(), ShipGetProperty(), and ShipSetProperty().
|
extern |
Definition at line 48 of file OOJSEntity.m.
Referenced by InitOOJSEntity(), and JSEntityClass().
|
extern |
Definition at line 38 of file OOJSEntity.m.
Referenced by InitOOJSEntity(), and JSEntityPrototype().