|
Oolite
|
import "EntityOOJavaScriptExtensions.h"import "OOJavaScriptEngine.h"import "Universe.h"import <Foundation/Foundation.h>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 142 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 127 of file OOJSEntity.m.
References gOOEntityJSClass, gOOEntityJSPrototype, OOJSBasicPrivateObjectConverter(), OOJSRegisterObjectConverter(), OOJSUnconstructableConstruct(), sEntityMethods, and sEntityProperties.
Referenced by OOJavaScriptEngine(Private)::createMainThreadContext.
| OOINLINE JSClass * JSEntityClass | ( | void | ) |
Definition at line 42 of file OOJSEntity.h.
References gOOEntityJSClass, JSEntityClass(), and OOINLINE.
Referenced by Entity(OOJavaScriptExtensions)::getJSClass:andPrototype:, InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSPlanet(), InitOOJSShip(), InitOOJSSun(), InitOOJSVisualEffect(), InitOOJSWaypoint(), InitOOJSWormhole(), JSEntityClass(), JSObjectGetQuaternion(), and JSObjectGetVector().
| OOINLINE JSObject * JSEntityPrototype | ( | void | ) |
Definition at line 43 of file OOJSEntity.h.
References gOOEntityJSPrototype, and OOINLINE.
Referenced by Entity(OOJavaScriptExtensions)::getJSClass:andPrototype:, InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSPlanet(), InitOOJSShip(), InitOOJSSun(), InitOOJSVisualEffect(), InitOOJSWaypoint(), and InitOOJSWormhole().
| BOOL JSValueToEntity | ( | JSContext * | context, |
| jsval | value, | ||
| Entity ** | outEntity ) |
Definition at line 133 of file OOJSEntity.m.
Referenced by EntityFromArgumentList(), EntityFromArgumentList(), GetRelativeToAndRange(), GetRelativeToAndRange(), PlayerShipSetProperty(), PlayerShipSetProperty(), ShipSetProperty(), and ShipSetProperty().
| OOINLINE BOOL OOIsPlayerStale | ( | void | ) |
Definition at line 63 of file OOJSEntity.h.
References gOOJSPlayerIfStale, nil, and OOINLINE.
Referenced by PlayerSetEscapePodDestination(), PlayerSetEscapePodDestination(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipCancelDockingRequest(), PlayerShipCancelDockingRequest(), PlayerShipDisengageAutopilot(), PlayerShipDisengageAutopilot(), PlayerShipEngageAutopilotToStation(), PlayerShipEngageAutopilotToStation(), PlayerShipGetProperty(), PlayerShipGetProperty(), PlayerShipLaunch(), PlayerShipLaunch(), PlayerShipRemoveAllCargo(), PlayerShipRemoveAllCargo(), PlayerShipRequestDockingClearance(), PlayerShipRequestDockingClearance(), PlayerShipSetProperty(), PlayerShipSetProperty(), PlayerShipUseSpecialCargo(), and PlayerShipUseSpecialCargo().
Definition at line 69 of file OOJSEntity.h.
References gOOJSPlayerIfStale, nil, and OOINLINE.
Referenced by EntityGetProperty(), EntityGetProperty(), EntitySetProperty(), EntitySetProperty(), ShipGetProperty(), ShipGetProperty(), ShipSetProperty(), and ShipSetProperty().
|
extern |
Definition at line 44 of file OOJSEntity.m.
Referenced by InitOOJSEntity(), and JSEntityClass().
|
extern |
Definition at line 36 of file OOJSEntity.m.
Referenced by InitOOJSEntity(), and JSEntityPrototype().