![]() |
Oolite 1.91.0.7658-250404-b1488af
|
import "OOJavaScriptEngine.h"
Go to the source code of this file.
OOINLINE OOCompassMode OOCompassModeFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 132 of file OOConstToJSString.h.
References gOOCompassModeConstTable, kOOCompassModeDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
OOINLINE OOCompassMode OOCompassModeFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 139 of file OOConstToJSString.h.
References gOOCompassModeConstTable, kOOCompassModeDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
Referenced by PlayerShipSetProperty().
NSUInteger OOConstantFromJSStringPRIVATE | ( | JSContext * | context, |
JSString * | string, | ||
struct ConstTable * | table, | ||
NSInteger | defaultValue ) |
Definition at line 232 of file OOConstToJSString.m.
References ConstTable::count, count, ConstTable::entries, JS_IsInRequest, TableEntry::jsString, sInited, and TableEntry::value.
Referenced by OOCompassModeFromJSString(), OOConstantFromJSValuePRIVATE(), OOEntityStatusFromJSString(), OOGalacticHyperspaceBehaviourFromJSString(), OOGUIScreenIDFromJSString(), OOScanClassFromJSString(), and OOViewIDFromJSString().
NSUInteger OOConstantFromJSValuePRIVATE | ( | JSContext * | context, |
jsval | value, | ||
struct ConstTable * | table, | ||
NSInteger | defaultValue ) |
Definition at line 266 of file OOConstToJSString.m.
References EXPECT, and OOConstantFromJSStringPRIVATE().
Referenced by OOCompassModeFromJSValue(), OOEntityStatusFromJSValue(), OOGalacticHyperspaceBehaviourFromJSValue(), OOGUIScreenIDFromJSValue(), OOScanClassFromJSValue(), and OOViewIDFromJSValue().
void OOConstToJSStringDestroy | ( | void | ) |
Definition at line 165 of file OOConstToJSString.m.
References sInited.
Referenced by OOJavaScriptEngine(Private)::destroyMainThreadContext.
void OOConstToJSStringInit | ( | JSContext * | context | ) |
Definition at line 144 of file OOConstToJSString.m.
References gOOCompassModeConstTable, gOOEntityStatusConstTable, gOOGalacticHyperspaceBehaviourConstTable, gOOGUIScreenIDConstTable, gOOLegalStatusReasonConstTable, gOOLongRangeChartModeConstTable, gOOScanClassConstTable, gOOShipDamageTypeConstTable, gOOViewIDConstTable, InitTable(), JS_IsInRequest, sInited, and sUndefinedString.
Referenced by OOJavaScriptEngine(Private)::createMainThreadContext.
OOINLINE OOEntityStatus OOEntityStatusFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 64 of file OOConstToJSString.h.
References gOOEntityStatusConstTable, kOOEntityStatusDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
OOINLINE OOEntityStatus OOEntityStatusFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 71 of file OOConstToJSString.h.
References gOOEntityStatusConstTable, kOOEntityStatusDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 201 of file OOConstToJSString.h.
References gOOGalacticHyperspaceBehaviourConstTable, kOOGalacticHyperspaceBehaviourDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 208 of file OOConstToJSString.h.
References gOOGalacticHyperspaceBehaviourConstTable, kOOGalacticHyperspaceBehaviourDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
Referenced by PlayerShipSetProperty().
OOINLINE OOGUIScreenID OOGUIScreenIDFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 166 of file OOConstToJSString.h.
References gOOGUIScreenIDConstTable, kOOGUIScreenIDDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
OOINLINE OOGUIScreenID OOGUIScreenIDFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 173 of file OOConstToJSString.h.
References gOOGUIScreenIDConstTable, kOOGUIScreenIDDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
Referenced by GlobalClearExtraGuiScreenKeys(), GlobalSetExtraGuiScreenKeys(), and MissionSetProperty().
OOINLINE JSString * OOJSStringFromCompassMode | ( | JSContext * | context, |
OOCompassMode | value ) |
Definition at line 119 of file OOConstToJSString.h.
References gOOCompassModeConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromCompassMode().
JSString * OOJSStringFromConstantPRIVATE | ( | JSContext * | context, |
NSInteger | value, | ||
struct ConstTable * | table ) |
Definition at line 200 of file OOConstToJSString.m.
References ConstTable::count, ConstTable::entries, JS_IsInRequest, TableEntry::jsString, sInited, sUndefinedString, and TableEntry::value.
Referenced by OOJSStringFromCompassMode(), OOJSStringFromEntityStatus(), OOJSStringFromGalacticHyperspaceBehaviour(), OOJSStringFromGUIScreenID(), OOJSStringFromLegalStatusReason(), OOJSStringFromScanClass(), OOJSStringFromShipDamageType(), and OOJSStringFromViewID().
OOINLINE JSString * OOJSStringFromEntityStatus | ( | JSContext * | context, |
OOEntityStatus | value ) |
Definition at line 51 of file OOConstToJSString.h.
References gOOEntityStatusConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromEntityStatus().
OOINLINE JSString * OOJSStringFromGalacticHyperspaceBehaviour | ( | JSContext * | context, |
OOGalacticHyperspaceBehaviour | value ) |
Definition at line 188 of file OOConstToJSString.h.
References gOOGalacticHyperspaceBehaviourConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromGalacticHyperspaceBehaviour().
OOINLINE JSString * OOJSStringFromGUIScreenID | ( | JSContext * | context, |
OOGUIScreenID | value ) |
Definition at line 153 of file OOConstToJSString.h.
References gOOGUIScreenIDConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromGUIScreenID().
OOINLINE JSString * OOJSStringFromLegalStatusReason | ( | JSContext * | context, |
OOLegalStatusReason | value ) |
Definition at line 270 of file OOConstToJSString.h.
References gOOLegalStatusReasonConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromLegalStatusReason().
OOINLINE JSString * OOJSStringFromScanClass | ( | JSContext * | context, |
OOScanClass | value ) |
Definition at line 85 of file OOConstToJSString.h.
References gOOScanClassConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromScanClass().
OOINLINE JSString * OOJSStringFromShipDamageType | ( | JSContext * | context, |
OOShipDamageType | value ) |
Definition at line 256 of file OOConstToJSString.h.
References gOOShipDamageTypeConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromShipDamageType().
Definition at line 223 of file OOConstToJSString.h.
References gOOViewIDConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromViewID().
OOINLINE jsval OOJSValueFromCompassMode | ( | JSContext * | context, |
OOCompassMode | value ) |
Definition at line 126 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromCompassMode().
Referenced by PlayerEntity(OOPrivate)::noteCompassLostTarget, and PlayerShipGetProperty().
OOINLINE jsval OOJSValueFromEntityStatus | ( | JSContext * | context, |
OOEntityStatus | value ) |
Definition at line 58 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromEntityStatus().
Referenced by EntityGetProperty().
OOINLINE jsval OOJSValueFromGalacticHyperspaceBehaviour | ( | JSContext * | context, |
OOGalacticHyperspaceBehaviour | value ) |
Definition at line 195 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromGalacticHyperspaceBehaviour().
Referenced by PlayerShipGetProperty().
OOINLINE jsval OOJSValueFromGUIScreenID | ( | JSContext * | context, |
OOGUIScreenID | value ) |
Definition at line 160 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromGUIScreenID().
Referenced by GlobalGetProperty(), MissionGetProperty(), PlayerEntity::noteGUIDidChangeFrom:to:refresh:, and PlayerEntity::noteGUIWillChangeTo:.
OOINLINE jsval OOJSValueFromLegalStatusReason | ( | JSContext * | context, |
OOLegalStatusReason | value ) |
Definition at line 277 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromLegalStatusReason().
Referenced by PlayerEntity::markAsOffender:withReason:, and ShipEntity::markAsOffender:withReason:.
OOINLINE jsval OOJSValueFromScanClass | ( | JSContext * | context, |
OOScanClass | value ) |
Definition at line 92 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromScanClass().
Referenced by EntityGetProperty().
OOINLINE jsval OOJSValueFromShipDamageType | ( | JSContext * | context, |
OOShipDamageType | value ) |
Definition at line 263 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromShipDamageType().
Referenced by ShipEntity::noteKilledBy:damageType:, and ShipEntity::noteTakingDamage:from:type:.
Definition at line 230 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromViewID().
Referenced by PlayerShipGetProperty(), and PlayerEntity(OOControlsPrivate)::switchToThisView:fromView:andProcessWeaponFacing:justNotify:.
OOINLINE OOScanClass OOScanClassFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 98 of file OOConstToJSString.h.
References gOOScanClassConstTable, kOOScanClassDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
OOINLINE OOScanClass OOScanClassFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 105 of file OOConstToJSString.h.
References gOOScanClassConstTable, kOOScanClassDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
Referenced by EntitySetProperty(), SystemCountEntitiesWithScanClass(), and SystemEntitiesWithScanClass().
Definition at line 236 of file OOConstToJSString.h.
References gOOViewIDConstTable, kOOViewIDDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
Definition at line 243 of file OOConstToJSString.h.
References gOOViewIDConstTable, kOOViewIDDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.