|
Oolite
|
import "OOJavaScriptEngine.h"Go to the source code of this file.
| OOINLINE OOCompassMode OOCompassModeFromJSString | ( | JSContext * | context, |
| JSString * | string ) |
Definition at line 119 of file OOConstToJSString.h.
References gOOCompassModeConstTable, kOOCompassModeDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
| OOINLINE OOCompassMode OOCompassModeFromJSValue | ( | JSContext * | context, |
| jsval | value ) |
Definition at line 125 of file OOConstToJSString.h.
References gOOCompassModeConstTable, kOOCompassModeDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
Referenced by PlayerShipSetProperty(), and PlayerShipSetProperty().
| NSUInteger OOConstantFromJSStringPRIVATE | ( | JSContext * | context, |
| JSString * | string, | ||
| struct ConstTable * | table, | ||
| NSInteger | defaultValue ) |
Definition at line 206 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 233 of file OOConstToJSString.m.
References EXPECT, and OOConstantFromJSStringPRIVATE().
Referenced by OOCompassModeFromJSValue(), OOCompassModeFromJSValue(), OOEntityStatusFromJSValue(), OOEntityStatusFromJSValue(), OOGalacticHyperspaceBehaviourFromJSValue(), OOGalacticHyperspaceBehaviourFromJSValue(), OOGUIScreenIDFromJSValue(), OOGUIScreenIDFromJSValue(), OOScanClassFromJSValue(), OOScanClassFromJSValue(), OOViewIDFromJSValue(), and OOViewIDFromJSValue().
| void OOConstToJSStringDestroy | ( | void | ) |
Definition at line 149 of file OOConstToJSString.m.
References sInited.
Referenced by OOJavaScriptEngine(Private)::destroyMainThreadContext.
| void OOConstToJSStringInit | ( | JSContext * | context | ) |
Definition at line 129 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 59 of file OOConstToJSString.h.
References gOOEntityStatusConstTable, kOOEntityStatusDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
| OOINLINE OOEntityStatus OOEntityStatusFromJSValue | ( | JSContext * | context, |
| jsval | value ) |
Definition at line 65 of file OOConstToJSString.h.
References gOOEntityStatusConstTable, kOOEntityStatusDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
| OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSString | ( | JSContext * | context, |
| JSString * | string ) |
Definition at line 179 of file OOConstToJSString.h.
References gOOGalacticHyperspaceBehaviourConstTable, kOOGalacticHyperspaceBehaviourDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
| OOINLINE OOGalacticHyperspaceBehaviour OOGalacticHyperspaceBehaviourFromJSValue | ( | JSContext * | context, |
| jsval | value ) |
Definition at line 185 of file OOConstToJSString.h.
References gOOGalacticHyperspaceBehaviourConstTable, kOOGalacticHyperspaceBehaviourDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
Referenced by PlayerShipSetProperty(), and PlayerShipSetProperty().
| OOINLINE OOGUIScreenID OOGUIScreenIDFromJSString | ( | JSContext * | context, |
| JSString * | string ) |
Definition at line 149 of file OOConstToJSString.h.
References gOOGUIScreenIDConstTable, kOOGUIScreenIDDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
| OOINLINE OOGUIScreenID OOGUIScreenIDFromJSValue | ( | JSContext * | context, |
| jsval | value ) |
Definition at line 155 of file OOConstToJSString.h.
References gOOGUIScreenIDConstTable, kOOGUIScreenIDDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
Referenced by GlobalClearExtraGuiScreenKeys(), GlobalClearExtraGuiScreenKeys(), GlobalSetExtraGuiScreenKeys(), GlobalSetExtraGuiScreenKeys(), MissionSetProperty(), and MissionSetProperty().
| OOINLINE JSString * OOJSStringFromCompassMode | ( | JSContext * | context, |
| OOCompassMode | value ) |
Definition at line 108 of file OOConstToJSString.h.
References gOOCompassModeConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromCompassMode().
| JSString * OOJSStringFromConstantPRIVATE | ( | JSContext * | context, |
| NSInteger | value, | ||
| struct ConstTable * | table ) |
Definition at line 182 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 48 of file OOConstToJSString.h.
References gOOEntityStatusConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromEntityStatus().
| OOINLINE JSString * OOJSStringFromGalacticHyperspaceBehaviour | ( | JSContext * | context, |
| OOGalacticHyperspaceBehaviour | value ) |
Definition at line 168 of file OOConstToJSString.h.
References gOOGalacticHyperspaceBehaviourConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromGalacticHyperspaceBehaviour().
| OOINLINE JSString * OOJSStringFromGUIScreenID | ( | JSContext * | context, |
| OOGUIScreenID | value ) |
Definition at line 138 of file OOConstToJSString.h.
References gOOGUIScreenIDConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromGUIScreenID().
| OOINLINE JSString * OOJSStringFromLegalStatusReason | ( | JSContext * | context, |
| OOLegalStatusReason | value ) |
Definition at line 237 of file OOConstToJSString.h.
References gOOLegalStatusReasonConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromLegalStatusReason().
| OOINLINE JSString * OOJSStringFromScanClass | ( | JSContext * | context, |
| OOScanClass | value ) |
Definition at line 78 of file OOConstToJSString.h.
References gOOScanClassConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromScanClass().
| OOINLINE JSString * OOJSStringFromShipDamageType | ( | JSContext * | context, |
| OOShipDamageType | value ) |
Definition at line 226 of file OOConstToJSString.h.
References gOOShipDamageTypeConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromShipDamageType().
Definition at line 198 of file OOConstToJSString.h.
References gOOViewIDConstTable, OOINLINE, and OOJSStringFromConstantPRIVATE().
Referenced by OOJSValueFromViewID().
| OOINLINE jsval OOJSValueFromCompassMode | ( | JSContext * | context, |
| OOCompassMode | value ) |
Definition at line 114 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromCompassMode().
Referenced by PlayerEntity(OOPrivate)::noteCompassLostTarget, PlayerShipGetProperty(), and PlayerShipGetProperty().
| OOINLINE jsval OOJSValueFromEntityStatus | ( | JSContext * | context, |
| OOEntityStatus | value ) |
Definition at line 54 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromEntityStatus().
Referenced by EntityGetProperty(), and EntityGetProperty().
| OOINLINE jsval OOJSValueFromGalacticHyperspaceBehaviour | ( | JSContext * | context, |
| OOGalacticHyperspaceBehaviour | value ) |
Definition at line 174 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromGalacticHyperspaceBehaviour().
Referenced by PlayerShipGetProperty(), and PlayerShipGetProperty().
| OOINLINE jsval OOJSValueFromGUIScreenID | ( | JSContext * | context, |
| OOGUIScreenID | value ) |
Definition at line 144 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromGUIScreenID().
Referenced by GlobalGetProperty(), GlobalGetProperty(), MissionGetProperty(), MissionGetProperty(), PlayerEntity::noteGUIDidChangeFrom:to:refresh:, and PlayerEntity::noteGUIWillChangeTo:.
| OOINLINE jsval OOJSValueFromLegalStatusReason | ( | JSContext * | context, |
| OOLegalStatusReason | value ) |
Definition at line 243 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 84 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromScanClass().
Referenced by EntityGetProperty(), and EntityGetProperty().
| OOINLINE jsval OOJSValueFromShipDamageType | ( | JSContext * | context, |
| OOShipDamageType | value ) |
Definition at line 232 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromShipDamageType().
Referenced by ShipEntity::noteKilledBy:damageType:, and ShipEntity::noteTakingDamage:from:type:.
Definition at line 204 of file OOConstToJSString.h.
References OOINLINE, and OOJSStringFromViewID().
Referenced by Universe::enterGUIViewModeWithMouseInteraction:, PlayerShipGetProperty(), PlayerShipGetProperty(), and PlayerEntity(OOControlsPrivate)::switchToThisView:fromView:andProcessWeaponFacing:justNotify:.
| OOINLINE OOScanClass OOScanClassFromJSString | ( | JSContext * | context, |
| JSString * | string ) |
Definition at line 89 of file OOConstToJSString.h.
References gOOScanClassConstTable, kOOScanClassDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
| OOINLINE OOScanClass OOScanClassFromJSValue | ( | JSContext * | context, |
| jsval | value ) |
Definition at line 95 of file OOConstToJSString.h.
References gOOScanClassConstTable, kOOScanClassDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.
Referenced by EntitySetProperty(), EntitySetProperty(), SystemCountEntitiesWithScanClass(), SystemCountEntitiesWithScanClass(), SystemEntitiesWithScanClass(), and SystemEntitiesWithScanClass().
Definition at line 209 of file OOConstToJSString.h.
References gOOViewIDConstTable, kOOViewIDDefault, OOConstantFromJSStringPRIVATE(), and OOINLINE.
Definition at line 215 of file OOConstToJSString.h.
References gOOViewIDConstTable, kOOViewIDDefault, OOConstantFromJSValuePRIVATE(), and OOINLINE.