Oolite 1.91.0.7646-241128-10e222e
|
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, and OOConstantFromJSStringPRIVATE().
OOINLINE OOCompassMode OOCompassModeFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 139 of file OOConstToJSString.h.
References gOOCompassModeConstTable, kOOCompassModeDefault, and OOConstantFromJSValuePRIVATE().
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.
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.
OOINLINE OOEntityStatus OOEntityStatusFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 64 of file OOConstToJSString.h.
References gOOEntityStatusConstTable, kOOEntityStatusDefault, and OOConstantFromJSStringPRIVATE().
OOINLINE OOEntityStatus OOEntityStatusFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 71 of file OOConstToJSString.h.
References gOOEntityStatusConstTable, kOOEntityStatusDefault, and OOConstantFromJSValuePRIVATE().
OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 201 of file OOConstToJSString.h.
References gOOGalacticHyperspaceBehaviourConstTable, kOOGalacticHyperspaceBehaviourDefault, and OOConstantFromJSStringPRIVATE().
OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 208 of file OOConstToJSString.h.
References gOOGalacticHyperspaceBehaviourConstTable, kOOGalacticHyperspaceBehaviourDefault, and OOConstantFromJSValuePRIVATE().
Referenced by PlayerShipSetProperty().
OOINLINE OOGUIScreenID OOGUIScreenIDFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 166 of file OOConstToJSString.h.
References gOOGUIScreenIDConstTable, kOOGUIScreenIDDefault, and OOConstantFromJSStringPRIVATE().
OOINLINE OOGUIScreenID OOGUIScreenIDFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 173 of file OOConstToJSString.h.
References gOOGUIScreenIDConstTable, kOOGUIScreenIDDefault, and OOConstantFromJSValuePRIVATE().
Referenced by GlobalClearExtraGuiScreenKeys(), GlobalSetExtraGuiScreenKeys(), and MissionSetProperty().
OOINLINE JSString * OOJSStringFromCompassMode | ( | JSContext * | context, |
OOCompassMode | value ) |
Definition at line 119 of file OOConstToJSString.h.
References gOOCompassModeConstTable, 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, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromEntityStatus().
OOINLINE JSString * OOJSStringFromGalacticHyperspaceBehaviour | ( | JSContext * | context, |
OOGalacticHyperspaceBehaviour | value ) |
Definition at line 188 of file OOConstToJSString.h.
References gOOGalacticHyperspaceBehaviourConstTable, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromGalacticHyperspaceBehaviour().
OOINLINE JSString * OOJSStringFromGUIScreenID | ( | JSContext * | context, |
OOGUIScreenID | value ) |
Definition at line 153 of file OOConstToJSString.h.
References gOOGUIScreenIDConstTable, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromGUIScreenID().
OOINLINE JSString * OOJSStringFromLegalStatusReason | ( | JSContext * | context, |
OOLegalStatusReason | value ) |
Definition at line 270 of file OOConstToJSString.h.
References gOOLegalStatusReasonConstTable, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromLegalStatusReason().
OOINLINE JSString * OOJSStringFromScanClass | ( | JSContext * | context, |
OOScanClass | value ) |
Definition at line 85 of file OOConstToJSString.h.
References gOOScanClassConstTable, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromScanClass().
OOINLINE JSString * OOJSStringFromShipDamageType | ( | JSContext * | context, |
OOShipDamageType | value ) |
Definition at line 256 of file OOConstToJSString.h.
References gOOShipDamageTypeConstTable, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromShipDamageType().
Definition at line 223 of file OOConstToJSString.h.
References gOOViewIDConstTable, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromViewID().
OOINLINE jsval OOJSValueFromCompassMode | ( | JSContext * | context, |
OOCompassMode | value ) |
Definition at line 126 of file OOConstToJSString.h.
References OOJSStringFromCompassMode().
Referenced by PlayerShipGetProperty().
OOINLINE jsval OOJSValueFromEntityStatus | ( | JSContext * | context, |
OOEntityStatus | value ) |
Definition at line 58 of file OOConstToJSString.h.
References OOJSStringFromEntityStatus().
Referenced by EntityGetProperty().
OOINLINE jsval OOJSValueFromGalacticHyperspaceBehaviour | ( | JSContext * | context, |
OOGalacticHyperspaceBehaviour | value ) |
Definition at line 195 of file OOConstToJSString.h.
References OOJSStringFromGalacticHyperspaceBehaviour().
Referenced by PlayerShipGetProperty().
OOINLINE jsval OOJSValueFromGUIScreenID | ( | JSContext * | context, |
OOGUIScreenID | value ) |
Definition at line 160 of file OOConstToJSString.h.
References OOJSStringFromGUIScreenID().
Referenced by GlobalGetProperty(), and MissionGetProperty().
OOINLINE jsval OOJSValueFromLegalStatusReason | ( | JSContext * | context, |
OOLegalStatusReason | value ) |
Definition at line 277 of file OOConstToJSString.h.
References OOJSStringFromLegalStatusReason().
OOINLINE jsval OOJSValueFromScanClass | ( | JSContext * | context, |
OOScanClass | value ) |
Definition at line 92 of file OOConstToJSString.h.
References OOJSStringFromScanClass().
Referenced by EntityGetProperty().
OOINLINE jsval OOJSValueFromShipDamageType | ( | JSContext * | context, |
OOShipDamageType | value ) |
Definition at line 263 of file OOConstToJSString.h.
References OOJSStringFromShipDamageType().
Definition at line 230 of file OOConstToJSString.h.
References OOJSStringFromViewID().
Referenced by PlayerShipGetProperty().
OOINLINE OOScanClass OOScanClassFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 98 of file OOConstToJSString.h.
References gOOScanClassConstTable, kOOScanClassDefault, and OOConstantFromJSStringPRIVATE().
OOINLINE OOScanClass OOScanClassFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 105 of file OOConstToJSString.h.
References gOOScanClassConstTable, kOOScanClassDefault, and OOConstantFromJSValuePRIVATE().
Referenced by EntitySetProperty(), SystemCountEntitiesWithScanClass(), and SystemEntitiesWithScanClass().
Definition at line 236 of file OOConstToJSString.h.
References gOOViewIDConstTable, kOOViewIDDefault, and OOConstantFromJSStringPRIVATE().
Definition at line 243 of file OOConstToJSString.h.
References gOOViewIDConstTable, kOOViewIDDefault, and OOConstantFromJSValuePRIVATE().