Oolite 1.91.0.7645-241119-222d325
|
import "OOCocoa.h"
import "Universe.h"
import "PlayerEntity.h"
import "PlayerEntityLegacyScriptEngine.h"
#include <jsapi.h>
import "OOJSPropID.h"
import "OOJSEngineNativeWrappers.h"
Go to the source code of this file.
Classes | |
class | OOJavaScriptEngine |
category | NSObject(OOJavaScript) |
class | OOJSValue |
category | NSString(OOJavaScriptExtensions) |
struct | JSFunctionPredicateParameter |
Macros | |
#define | OOJSENGINE_MONITOR_SUPPORT OOLITE_DEBUG |
#define | JS_IsInRequest(context) |
#define | JS_BeginRequest(context) |
#define | JS_EndRequest(context) |
#define | OOJSSTR(str) |
#define | DEFINE_JS_OBJECT_GETTER(NAME, JSCLASS, JSPROTO, OBJCCLASSNAME) |
#define | OOJSAddGCValueRoot(context, root, name) |
#define | OOJSAddGCStringRoot(context, root, name) |
#define | OOJSAddGCObjectRoot(context, root, name) |
#define | OOJSAddGCThingRoot(context, root, name) |
#define | OOJS_PROP_READWRITE (JSPROP_PERMANENT | JSPROP_ENUMERATE) |
#define | OOJS_PROP_READONLY (JSPROP_PERMANENT | JSPROP_ENUMERATE | JSPROP_READONLY) |
#define | OOJS_PROP_HIDDEN_READWRITE (JSPROP_PERMANENT) |
#define | OOJS_PROP_HIDDEN_READONLY (JSPROP_PERMANENT | JSPROP_READONLY) |
#define | OOJS_METHOD_READONLY OOJS_PROP_HIDDEN_READONLY |
#define | OOJS_PROP_READWRITE_CB (OOJS_PROP_READWRITE | JSPROP_SHARED) |
#define | OOJS_PROP_READONLY_CB (OOJS_PROP_READONLY | JSPROP_SHARED) |
#define | OOJS_PROP_HIDDEN_READWRITE_CB (OOJS_PROP_HIDDEN_READWRITE | JSPROP_SHARED) |
#define | OOJS_PROP_HIDDEN_READONLY_CB (OOJS_PROP_HIDDEN_READONLY | JSPROP_SHARED) |
#define | OOJS_THIS JS_THIS_OBJECT(context, vp) |
#define | OOJS_ARGV JS_ARGV(context, vp) |
#define | OOJS_RVAL JS_RVAL(context, vp) |
#define | OOJS_SET_RVAL(v) |
#define | OOJS_RETURN(v) |
#define | OOJS_RETURN_JSOBJECT(o) |
#define | OOJS_RETURN_VOID OOJS_RETURN(JSVAL_VOID) |
#define | OOJS_RETURN_NULL OOJS_RETURN(JSVAL_NULL) |
#define | OOJS_RETURN_BOOL(v) |
#define | OOJS_RETURN_INT(v) |
#define | OOJS_RETURN_OBJECT(o) |
#define | OOJS_RETURN_WITH_HELPER(helper, value) |
#define | OOJS_RETURN_VECTOR(value) |
#define | OOJS_RETURN_HPVECTOR(value) |
#define | OOJS_RETURN_QUATERNION(value) |
#define | OOJS_RETURN_DOUBLE(value) |
Typedefs | |
typedef id(* | OOJSClassConverterCallback) (JSContext *context, JSObject *object) |
Functions | |
OOINLINE JSContext * | OOJSAcquireContext (void) |
OOINLINE void | OOJSRelinquishContext (JSContext *context) |
void | OOJSReportError (JSContext *context, NSString *format,...) |
void | OOJSReportErrorWithArguments (JSContext *context, NSString *format, va_list args) |
void | OOJSReportErrorForCaller (JSContext *context, NSString *scriptClass, NSString *function, NSString *format,...) |
void | OOJSReportWarning (JSContext *context, NSString *format,...) |
void | OOJSReportWarningWithArguments (JSContext *context, NSString *format, va_list args) |
void | OOJSReportWarningForCaller (JSContext *context, NSString *scriptClass, NSString *function, NSString *format,...) |
void | OOJSReportBadPropertySelector (JSContext *context, JSObject *thisObj, jsid propID, JSPropertySpec *propertySpec) |
void | OOJSReportBadPropertyValue (JSContext *context, JSObject *thisObj, jsid propID, JSPropertySpec *propertySpec, jsval value) |
void | OOJSReportBadArguments (JSContext *context, NSString *scriptClass, NSString *function, uintN argc, jsval *argv, NSString *message, NSString *expectedArgsDescription) |
void | OOJSSetWarningOrErrorStackSkip (unsigned skip) |
BOOL | OOJSArgumentListGetNumber (JSContext *context, NSString *scriptClass, NSString *function, uintN argc, jsval *argv, double *outNumber, uintN *outConsumed) |
BOOL | OOJSArgumentListGetNumberNoError (JSContext *context, uintN argc, jsval *argv, double *outNumber, uintN *outConsumed) |
OOINLINE jsval | OOJSValueFromBOOL (int b) INLINE_CONST_FUNC |
OOINLINE jsval | OOJSValueFromNativeObject (JSContext *context, id object) |
JSObject * | OOJSObjectFromNativeObject (JSContext *context, id object) |
void | OOJSStrLiteralCachePRIVATE (const char *string, jsval *strCache, BOOL *inited) |
NSString * | OOStringFromJSString (JSContext *context, JSString *string) |
NSString * | OOStringFromJSValue (JSContext *context, jsval value) |
NSString * | OOStringFromJSValueEvenIfNull (JSContext *context, jsval value) |
NSString * | OOStringFromJSPropertyIDAndSpec (JSContext *context, jsid propID, JSPropertySpec *propertySpec) |
NSString * | OOJSDescribeValue (JSContext *context, jsval value, BOOL abbreviateObjects) |
NSString * | OOStringFromJSID (jsid propID) |
jsid | OOJSIDFromString (NSString *string) |
BOOL | JSFunctionPredicate (Entity *entity, void *parameter) |
BOOL | JSEntityIsJavaScriptVisiblePredicate (Entity *entity, void *parameter) |
BOOL | JSEntityIsJavaScriptSearchablePredicate (Entity *entity, void *parameter) |
BOOL | JSEntityIsDemoShipPredicate (Entity *entity, void *parameter) |
id | OOJSNativeObjectFromJSValue (JSContext *context, jsval value) |
id | OOJSNativeObjectFromJSObject (JSContext *context, JSObject *object) |
id | OOJSNativeObjectOfClassFromJSValue (JSContext *context, jsval value, Class requiredClass) |
id | OOJSNativeObjectOfClassFromJSObject (JSContext *context, JSObject *object, Class requiredClass) |
OOINLINE JSClass * | OOJSGetClass (JSContext *cx, JSObject *obj) ALWAYS_INLINE_FUNC |
OOINLINE BOOL | OOJSValueIsFunction (JSContext *context, jsval value) |
OOINLINE BOOL | OOJSValueIsArray (JSContext *context, jsval value) |
NSDictionary * | OOJSDictionaryFromJSValue (JSContext *context, jsval value) |
NSDictionary * | OOJSDictionaryFromJSObject (JSContext *context, JSObject *object) |
NSDictionary * | OOJSDictionaryFromStringTable (JSContext *context, jsval value) |
BOOL | OOJSObjectGetterImplPRIVATE (JSContext *context, JSObject *object, JSClass *requiredJSClass, Class requiredObjCClass, const char *name, id *outObject) |
void | OOJSRegisterSubclass (JSClass *subclass, JSClass *superclass) |
BOOL | OOJSIsSubclass (JSClass *putativeSubclass, JSClass *superclass) |
OOINLINE BOOL | OOJSIsMemberOfSubclass (JSContext *context, JSObject *object, JSClass *superclass) |
id | OOJSBasicPrivateObjectConverter (JSContext *context, JSObject *object) |
void | OOJSRegisterObjectConverter (JSClass *theClass, OOJSClassConverterCallback converter) |
void | OOJSPauseTimeLimiter (void) |
void | OOJSResumeTimeLimiter (void) |
void | OOJSDumpStack (JSContext *context) |
NSString * | OOJSDescribeLocation (JSContext *context, JSStackFrame *stackFrame) |
void | OOJSMarkConsoleEvalLocation (JSContext *context, JSStackFrame *stackFrame) |
JSBool | OOJSUnconstructableConstruct (JSContext *context, uintN argc, jsval *vp) |
void | OOJSObjectWrapperFinalize (JSContext *context, JSObject *this) |
JSBool | OOJSObjectWrapperToString (JSContext *context, uintN argc, jsval *vp) |
Variables | |
NSString *const | kOOJavaScriptEngineWillResetNotification |
NSString *const | kOOJavaScriptEngineDidResetNotification |
#define DEFINE_JS_OBJECT_GETTER | ( | NAME, | |
JSCLASS, | |||
JSPROTO, | |||
OBJCCLASSNAME ) |
Definition at line 448 of file OOJavaScriptEngine.h.
#define JS_BeginRequest | ( | context | ) |
Definition at line 112 of file OOJavaScriptEngine.h.
Referenced by OOJSAcquireContext().
#define JS_EndRequest | ( | context | ) |
Definition at line 113 of file OOJavaScriptEngine.h.
Referenced by OOJSRelinquishContext().
#define JS_IsInRequest | ( | context | ) |
Definition at line 111 of file OOJavaScriptEngine.h.
Referenced by AddCallback(), DescribeValue(), GrowCallbackList(), InitTable(), JSFunctionPredicate(), OOConstantFromJSStringPRIVATE(), OOConstToJSStringInit(), OOJSRelinquishContext(), OOJSReportErrorWithArguments(), OOJSStringFromConstantPRIVATE(), OOStringFromJSValueEvenIfNull(), RemoveCallbackAtIndex(), and RemoveCallbackWithTrackingID().
#define OOJS_ARGV JS_ARGV(context, vp) |
Definition at line 661 of file OOJavaScriptEngine.h.
Referenced by ClockAddSeconds(), ClockClockStringForTime(), ConsoleConsoleMessage(), ConsoleDisplayMessagesInClass(), ConsoleGetProfile(), ConsoleInspectEntity(), ConsoleIsExecutableJavaScript(), ConsoleProfile(), ConsoleSetDisplayMessagesInClass(), ConsoleTrace(), OOManifest::dealloc, FontMeasureString(), DockEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GlobalAddFrameCallback(), GlobalAutoAIForRole(), GlobalClearExtraGuiScreenKeys(), GlobalDisplayNameForCommodity(), GlobalExpandDescription(), GlobalExpandMissionText(), GlobalGetGuiColorSettingForKey(), GlobalGetScreenBackgroundForKey(), GlobalIsValidFrameCallback(), GlobalKeyBindingDescription(), GlobalLog(), GlobalRandomInhabitantsDescription(), GlobalRemoveFrameCallback(), GlobalSetColorSaturation(), GlobalSetExtraGuiScreenKeys(), GlobalSetGuiColorSettingForKey(), GlobalSetScreenBackground(), GlobalSetScreenBackgroundForKey(), GlobalSetScreenOverlay(), GlobalTakeSnapShot(), PlayerEntity(OOJavaScriptExtensions)::javaScriptEngineWillReset:, ManifestComment(), ManifestSetComment(), ManifestShortComment(), MissionAddMessageText(), MissionMarkSystem(), MissionRunScreen(), MissionSetInstructionsInternal(), MissionUnmarkSystem(), OOEquipmentType(OOJavaScriptExtensions)::oo_clearJSSelf:, OOShipGroup(OOJavaScriptExtensions)::oo_clearJSSelf:, OOSound(OOJavaScriptExtentions)::oo_jsClassName, OoliteCompareVersion(), PlayerAddMessageToArrivalReport(), PlayerAudioMessage(), PlayerCommsMessage(), PlayerConsoleMessage(), PlayerEndScenario(), PlayerReplaceShip(), PlayerSetEscapePodDestination(), PlayerSetPlayerRole(), PlayerShipAddParcel(), PlayerShipAddPassenger(), PlayerShipAwardContract(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipBeginGalacticHyperspaceCountdown(), PlayerShipBeginHyperspaceCountdown(), PlayerShipCancelDockingRequest(), PlayerShipEngageAutopilotToStation(), PlayerShipHideHUDSelector(), PlayerShipRemoveContract(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipRequestDockingClearance(), PlayerShipSetCustomHUDDial(), PlayerShipSetCustomView(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionText(), PlayerShipSetPrimedEquipment(), PlayerShipShowHUDSelector(), PlayerShipUseSpecialCargo(), QuaternionConstruct(), QuaternionDot(), QuaternionMultiply(), QuaternionRotate(), QuaternionRotateX(), QuaternionRotateY(), QuaternionRotateZ(), ShipAddCargoEntity(), ShipAddCollisionException(), ShipAddDefenseTarget(), ShipAdjustCargo(), ShipAwardEquipment(), ShipCanAwardEquipment(), ShipCheckScanner(), ShipCommsMessage(), ShipDealEnergyDamage(), ShipDumpCargo(), ShipEjectItem(), ShipEjectSpecificItem(), ShipEnterWormhole(), ShipEquipmentStatus(), ShipExitAI(), ShipExitSystem(), ShipGroupAddShip(), ShipGroupConstruct(), ShipGroupRemoveShip(), ShipHasEquipmentProviding(), ShipHasRole(), ShipOfferToEscort(), ShipPatrolReportIn(), ShipReactToAIMessage(), ShipRemove(), ShipRemoveCollisionException(), ShipRemoveDefenseTarget(), ShipRemoveEquipment(), ShipRunLegacyScriptActions(), ShipSendAIMessage(), ShipSetAI(), ShipSetBounty(), ShipSetCargo(), ShipSetCargoType(), ShipSetCrew(), ShipSetEquipmentStatus(), ShipSetMaterials(), ShipSetMaterialsInternal(), ShipSetScript(), ShipSetShaders(), ShipSpawn(), ShipStaticKeysForRole(), ShipStaticRoleIsInCategory(), ShipStaticSetShipDataForKey(), ShipStaticShipDataForKey(), ShipSwitchAI(), ShipThreatAssessment(), SoundSourcePlay(), SoundStaticLoad(), SoundStaticPlayMusic(), SpecialJSWarning(), StationAbortDockingForShip(), StationAddShipToShipyard(), StationCanDockShip(), StationLaunchShipWithRole(), StationSetInterface(), StationSetMarketPrice(), StationSetMarketQuantity(), SunGoNova(), SystemAddMoon(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemEntitiesWithScanClass(), SystemFilteredEntities(), SystemInfoDistanceToSystem(), SystemInfoRouteToSystem(), SystemInfoSamplePrice(), SystemInfoSetPropertyMethod(), SystemInfoStaticFilteredSystems(), SystemInfoStaticSetInterstellarProperty(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), SystemLocationFromCode(), SystemSetPopulator(), SystemSetWaypoint(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemStaticInfoForSystem(), SystemStaticSystemIDForName(), SystemStaticSystemNameForID(), TimerConstruct(), VectorAdd(), VectorAngleTo(), VectorConstruct(), VectorCross(), VectorDistanceTo(), VectorDot(), VectorFromCoordinateSystem(), VectorMultiply(), VectorRotateBy(), VectorRotationTo(), VectorSquaredDistanceTo(), VectorStaticInterpolate(), VectorStaticRandom(), VectorStaticRandomDirection(), VectorStaticRandomDirectionAndLength(), VectorSubtract(), VectorToCoordinateSystem(), VectorTripleProduct(), VisualEffectScale(), VisualEffectSetMaterials(), VisualEffectSetMaterialsInternal(), and VisualEffectSetShaders().
#define OOJS_METHOD_READONLY OOJS_PROP_HIDDEN_READONLY |
Definition at line 647 of file OOJavaScriptEngine.h.
Referenced by InitOOJSFont(), and InitOOJSFrameCallbacks().
#define OOJS_PROP_HIDDEN_READONLY (JSPROP_PERMANENT | JSPROP_READONLY) |
Definition at line 644 of file OOJavaScriptEngine.h.
#define OOJS_PROP_HIDDEN_READONLY_CB (OOJS_PROP_HIDDEN_READONLY | JSPROP_SHARED) |
Definition at line 654 of file OOJavaScriptEngine.h.
#define OOJS_PROP_HIDDEN_READWRITE (JSPROP_PERMANENT) |
Definition at line 643 of file OOJavaScriptEngine.h.
#define OOJS_PROP_HIDDEN_READWRITE_CB (OOJS_PROP_HIDDEN_READWRITE | JSPROP_SHARED) |
Definition at line 653 of file OOJavaScriptEngine.h.
#define OOJS_PROP_READONLY (JSPROP_PERMANENT | JSPROP_ENUMERATE | JSPROP_READONLY) |
Definition at line 640 of file OOJavaScriptEngine.h.
Referenced by CreateOOJSGlobal(), InitOOJSClock(), InitOOJSFont(), InitOOJSManifest(), InitOOJSMission(), InitOOJSMissionVariables(), InitOOJSOolite(), InitOOJSPlayer(), InitOOJSPlayerShip(), InitOOJSSystem(), and InitOOJSWorldScripts().
#define OOJS_PROP_READONLY_CB (OOJS_PROP_READONLY | JSPROP_SHARED) |
Definition at line 651 of file OOJavaScriptEngine.h.
Referenced by WorldScriptsEnumerate().
#define OOJS_PROP_READWRITE (JSPROP_PERMANENT | JSPROP_ENUMERATE) |
Definition at line 639 of file OOJavaScriptEngine.h.
#define OOJS_PROP_READWRITE_CB (OOJS_PROP_READWRITE | JSPROP_SHARED) |
Definition at line 650 of file OOJavaScriptEngine.h.
#define OOJS_RETURN | ( | v | ) |
Definition at line 665 of file OOJavaScriptEngine.h.
Referenced by ShipEquipmentStatus(), and SystemStaticInfoForSystem().
#define OOJS_RETURN_BOOL | ( | v | ) |
Definition at line 669 of file OOJavaScriptEngine.h.
Referenced by ClockAddSeconds(), ConsoleDisplayMessagesInClass(), ConsoleIsExecutableJavaScript(), OOManifest::dealloc, DockEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOVisualEffectEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GlobalClearExtraGuiScreenKeys(), GlobalIsValidFrameCallback(), GlobalSetExtraGuiScreenKeys(), GlobalSetGuiColorSettingForKey(), GlobalSetScreenBackground(), GlobalSetScreenBackgroundForKey(), GlobalSetScreenOverlay(), GlobalTakeSnapShot(), ManifestSetComment(), MissionRunScreen(), MissionRunShipLibrary(), MissionUnmarkSystem(), OOShipGroup(OOJavaScriptExtensions)::oo_clearJSSelf:, PlayerEndScenario(), PlayerReplaceShip(), PlayerShipAddParcel(), PlayerShipAddPassenger(), PlayerShipAwardContract(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipBeginGalacticHyperspaceCountdown(), PlayerShipBeginHyperspaceCountdown(), PlayerShipCancelHyperspaceCountdown(), PlayerShipEngageAutopilotToStation(), PlayerShipRemoveContract(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipResetCustomView(), PlayerShipSetCustomView(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetPrimedEquipment(), PlayerShipTakeInternalDamage(), OOJavaScriptEngine(OOMonitorSupportInternal)::sendMonitorLogMessage:withMessageClass:inContext:, ShipAbandonShip(), ShipAddCargoEntity(), ShipAdjustCargo(), ShipAwardEquipment(), ShipCanAwardEquipment(), ShipExitSystem(), ShipFireECM(), ShipGroupAddShip(), ShipGroupRemoveShip(), ShipHasEquipmentProviding(), ShipHasRole(), ShipMarkTargetForFines(), ShipOfferToEscort(), ShipRemoveEquipment(), ShipRestoreSubEntities(), ShipSetCargo(), ShipSetCargoType(), ShipSetCrew(), ShipSetEquipmentStatus(), ShipSetMaterialsInternal(), ShipSetShaders(), ShipStaticRoleIsInCategory(), ShipStaticSetShipDataForKey(), StationAddShipToShipyard(), StationCanDockShip(), StationSetMarketPrice(), StationSetMarketQuantity(), TimerStart(), VisualEffectSetMaterialsInternal(), and VisualEffectSetShaders().
#define OOJS_RETURN_DOUBLE | ( | value | ) |
Definition at line 683 of file OOJavaScriptEngine.h.
Referenced by FontMeasureString(), QuaternionDot(), ShipThreatAssessment(), SystemInfoDistanceToSystem(), VectorAngleTo(), VectorDistanceTo(), VectorDot(), VectorMagnitude(), VectorSquaredDistanceTo(), VectorSquaredMagnitude(), and VectorTripleProduct().
#define OOJS_RETURN_HPVECTOR | ( | value | ) |
Definition at line 681 of file OOJavaScriptEngine.h.
Referenced by ShipGetSafeCourseToDestination(), SystemLocationFromCode(), VectorAdd(), VectorCross(), VectorDirection(), VectorFromCoordinateSystem(), VectorMultiply(), VectorRotateBy(), VectorStaticInterpolate(), VectorStaticRandom(), VectorStaticRandomDirection(), VectorStaticRandomDirectionAndLength(), VectorSubtract(), and VectorToCoordinateSystem().
#define OOJS_RETURN_INT | ( | v | ) |
Definition at line 670 of file OOJavaScriptEngine.h.
Referenced by GlobalAddFrameCallback(), OoliteCompareVersion(), ShipDamageAssessment(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), and SystemStaticSystemIDForName().
#define OOJS_RETURN_JSOBJECT | ( | o | ) |
Definition at line 666 of file OOJavaScriptEngine.h.
Referenced by QuaternionConstruct(), and VectorConstruct().
#define OOJS_RETURN_NULL OOJS_RETURN(JSVAL_NULL) |
Definition at line 668 of file OOJavaScriptEngine.h.
Referenced by ShipDumpCargo(), ShipRecallDockingInstructions(), and ShipRequestDockingInstructions().
#define OOJS_RETURN_OBJECT | ( | o | ) |
Definition at line 671 of file OOJavaScriptEngine.h.
Referenced by ClockClockStringForTime(), ConsoleGarbageCollect(), ConsoleScriptStack(), GlobalAutoAIForRole(), GlobalDisplayNameForCommodity(), GlobalExpandDescription(), GlobalExpandMissionText(), GlobalGetColorSaturation(), GlobalGetGuiColorSettingForKey(), GlobalGetScreenBackgroundForKey(), GlobalKeyBindingDescription(), GlobalRandomInhabitantsDescription(), GlobalRandomName(), JSClockToString(), ManifestComment(), ManifestShortComment(), OOEquipmentType(OOJavaScriptExtensions)::oo_clearJSSelf:, OOJSObjectWrapperToString(), QuaternionToSource(), QuaternionToString(), ShipCheckCourseToDestination(), ShipCheckScanner(), ShipDumpCargo(), ShipEjectItem(), ShipEjectSpecificItem(), ShipEquipmentStatus(), ShipFindNearestStation(), ShipFireMissile(), ShipGetMaterials(), ShipGetShaders(), ShipGroupConstruct(), ShipRecallDockingInstructions(), ShipRequestDockingInstructions(), ShipSelectNewMissile(), ShipSpawn(), ShipStaticKeys(), ShipStaticKeysForRole(), ShipStaticRoles(), ShipStaticShipDataForKey(), SoundSourceConstruct(), SoundStaticLoad(), SoundStaticMusicSoundSource(), StationLaunchDefenseShip(), StationLaunchEscort(), StationLaunchMiner(), StationLaunchPatrol(), StationLaunchPirateShip(), StationLaunchPolice(), StationLaunchScavenger(), StationLaunchShipWithRole(), StationLaunchShuttle(), SystemAddMoon(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemEntitiesWithScanClass(), SystemFilteredEntities(), SystemInfoRouteToSystem(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemStaticSystemNameForID(), SystemToString(), TimerConstruct(), VectorToSource(), VectorToString(), VisualEffectGetMaterials(), and VisualEffectGetShaders().
#define OOJS_RETURN_QUATERNION | ( | value | ) |
Definition at line 682 of file OOJavaScriptEngine.h.
Referenced by QuaternionConjugate(), QuaternionMultiply(), QuaternionNormalize(), QuaternionRotate(), QuaternionRotateX(), QuaternionRotateY(), QuaternionRotateZ(), QuaternionStaticRandom(), and VectorRotationTo().
#define OOJS_RETURN_VECTOR | ( | value | ) |
Definition at line 680 of file OOJavaScriptEngine.h.
Referenced by QuaternionVectorForward(), QuaternionVectorRight(), and QuaternionVectorUp().
#define OOJS_RETURN_VOID OOJS_RETURN(JSVAL_VOID) |
Definition at line 667 of file OOJavaScriptEngine.h.
Referenced by ConsoleClearConsole(), ConsoleConsoleMessage(), ConsoleInspectEntity(), ConsoleSetDisplayMessagesInClass(), ConsoleWriteJSMemoryStats(), ConsoleWriteLogMarker(), ConsoleWriteMemoryStats(), OOJSTimer::dealloc, EntityDumpState(), OOExhaustPlumeEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOFlasherEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOSunEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GlobalLog(), GlobalRemoveFrameCallback(), GlobalSetColorSaturation(), MissionAddMessageText(), MissionMarkSystem(), MissionSetInstructionsInternal(), OOSound(OOJavaScriptExtentions)::oo_jsClassName, OOSoundSource(OOJavaScriptExtentions)::oo_jsClassName, OoliteCompareVersion(), PlayerAddMessageToArrivalReport(), PlayerAudioMessage(), PlayerCommsMessage(), PlayerConsoleMessage(), PlayerDecreaseContractReputation(), PlayerDecreaseParcelReputation(), PlayerDecreasePassengerReputation(), PlayerIncreaseContractReputation(), PlayerIncreaseParcelReputation(), PlayerIncreasePassengerReputation(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipCancelDockingRequest(), PlayerShipDisengageAutopilot(), PlayerShipEngageAutopilotToStation(), PlayerShipHideHUDSelector(), PlayerShipLaunch(), PlayerShipRemoveAllCargo(), PlayerShipRequestDockingClearance(), PlayerShipResetScannerZoom(), PlayerShipSetCustomHUDDial(), PlayerShipSetMultiFunctionText(), PlayerShipShowHUDSelector(), PlayerShipUseSpecialCargo(), PlayerStopAudioMessage(), RemoveOrExplodeShip(), ShipAddCollisionException(), ShipAddDefenseTarget(), ShipBecomeCascadeExplosion(), ShipBroadcastCascadeImminent(), ShipBroadcastDistressMessage(), ShipClearDefenseTargets(), ShipCommsMessage(), ShipDealEnergyDamage(), ShipDeployEscorts(), ShipDockEscorts(), ShipEnterWormhole(), ShipExitAI(), ShipGroupAddShip(), ShipGroupRemoveShip(), ShipNotifyGroupOfWormhole(), ShipPatrolReportIn(), ShipPerformAttack(), ShipPerformCollect(), ShipPerformEscort(), ShipPerformFaceDestination(), ShipPerformFlee(), ShipPerformFlyToRangeFromDestination(), ShipPerformHold(), ShipPerformIdle(), ShipPerformIntercept(), ShipPerformLandOnPlanet(), ShipPerformMining(), ShipPerformScriptedAI(), ShipPerformScriptedAttackAI(), ShipPerformStop(), ShipPerformTumble(), ShipReactToAIMessage(), ShipRemoveCollisionException(), ShipRemoveDefenseTarget(), ShipRequestHelpFromGroup(), ShipRunLegacyScriptActions(), ShipSendAIMessage(), ShipSetAI(), ShipSetScript(), ShipSwitchAI(), ShipThrowSpark(), ShipUpdateEscortFormation(), SoundSourcePlay(), SoundSourceStop(), SoundStaticPlayMusic(), SpecialJSWarning(), SpecialMarkConsoleEntryPoint(), StationAbortAllDockings(), StationAbortDockingForShip(), StationAddShipToShipyard(), StationCanDockShip(), StationDecreaseAlertLevel(), StationDockPlayer(), StationIncreaseAlertLevel(), StationLaunchDefenseShip(), StationLaunchEscort(), StationLaunchMiner(), StationLaunchPatrol(), StationLaunchPirateShip(), StationLaunchPolice(), StationLaunchScavenger(), StationLaunchShipWithRole(), StationLaunchShuttle(), StationSetInterface(), StationSetMarketPrice(), StationSetMarketQuantity(), SunGoNova(), SystemInfoSetPropertyMethod(), SystemInfoStaticSetInterstellarProperty(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), SystemSendAllShipsAway(), SystemSetPopulator(), SystemSetWaypoint(), and VisualEffectRemove().
#define OOJS_RETURN_WITH_HELPER | ( | helper, | |
value ) |
Definition at line 673 of file OOJavaScriptEngine.h.
#define OOJS_RVAL JS_RVAL(context, vp) |
Definition at line 662 of file OOJavaScriptEngine.h.
Referenced by SystemInfoSamplePrice().
#define OOJS_SET_RVAL | ( | v | ) |
Definition at line 663 of file OOJavaScriptEngine.h.
Referenced by ConsoleGetProfile(), ConsoleProfile(), ConsoleTrace(), QuaternionToArray(), SystemInfoStaticFilteredSystems(), and VectorToArray().
#define OOJS_THIS JS_THIS_OBJECT(context, vp) |
Definition at line 660 of file OOJavaScriptEngine.h.
Referenced by ConsoleClearConsole(), ConsoleConsoleMessage(), OOJSTimer::dealloc, EntityDumpState(), DockEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOSunEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOShipGroup(OOJavaScriptExtensions)::oo_clearJSSelf:, OOSoundSource(OOJavaScriptExtentions)::oo_jsClassName, OOJSObjectWrapperToString(), QuaternionConjugate(), QuaternionDot(), QuaternionMultiply(), QuaternionNormalize(), QuaternionRotate(), QuaternionRotateX(), QuaternionRotateY(), QuaternionRotateZ(), QuaternionToArray(), QuaternionToSource(), QuaternionToString(), QuaternionVectorForward(), QuaternionVectorRight(), QuaternionVectorUp(), ShipGroupAddShip(), ShipGroupRemoveShip(), SoundSourcePlay(), SoundSourceStop(), StationAbortAllDockings(), StationAbortDockingForShip(), StationAddShipToShipyard(), StationCanDockShip(), StationDecreaseAlertLevel(), StationDockPlayer(), StationIncreaseAlertLevel(), StationLaunchDefenseShip(), StationLaunchEscort(), StationLaunchMiner(), StationLaunchPatrol(), StationLaunchPirateShip(), StationLaunchPolice(), StationLaunchScavenger(), StationLaunchShipWithRole(), StationLaunchShuttle(), StationSetInterface(), StationSetMarketPrice(), StationSetMarketQuantity(), SunGoNova(), SystemInfoDistanceToSystem(), SystemInfoRouteToSystem(), SystemInfoSamplePrice(), SystemInfoSetPropertyMethod(), TimerStart(), VectorAdd(), VectorAngleTo(), VectorCross(), VectorDirection(), VectorDistanceTo(), VectorDot(), VectorFromCoordinateSystem(), VectorMagnitude(), VectorMultiply(), VectorRotateBy(), VectorRotationTo(), VectorSquaredDistanceTo(), VectorSquaredMagnitude(), VectorSubtract(), VectorToArray(), VectorToCoordinateSystem(), VectorToSource(), VectorToString(), and VectorTripleProduct().
#define OOJSAddGCObjectRoot | ( | context, | |
root, | |||
name ) |
Definition at line 535 of file OOJavaScriptEngine.h.
Referenced by OOJSFunction::dealloc, JSSpecialFunctionsObjectWrapper(), and MissionRunCallback().
#define OOJSAddGCStringRoot | ( | context, | |
root, | |||
name ) |
Definition at line 534 of file OOJavaScriptEngine.h.
#define OOJSAddGCThingRoot | ( | context, | |
root, | |||
name ) |
Definition at line 536 of file OOJavaScriptEngine.h.
#define OOJSAddGCValueRoot | ( | context, | |
root, | |||
name ) |
Definition at line 533 of file OOJavaScriptEngine.h.
Referenced by AddCallback(), GrowCallbackList(), InitOOJSMission(), and MissionRunCallback().
#define OOJSENGINE_MONITOR_SUPPORT OOLITE_DEBUG |
Definition at line 33 of file OOJavaScriptEngine.h.
#define OOJSSTR | ( | str | ) |
Definition at line 283 of file OOJavaScriptEngine.h.
typedef id(* OOJSClassConverterCallback) (JSContext *context, JSObject *object) |
Definition at line 512 of file OOJavaScriptEngine.h.
BOOL JSEntityIsDemoShipPredicate | ( | Entity * | entity, |
void * | parameter ) |
Definition at line 2134 of file OOJavaScriptEngine.m.
BOOL JSEntityIsJavaScriptSearchablePredicate | ( | Entity * | entity, |
void * | parameter ) |
Definition at line 2100 of file OOJavaScriptEngine.m.
References OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, STELLAR_TYPE_ATMOSPHERE, STELLAR_TYPE_MINIATURE, STELLAR_TYPE_MOON, STELLAR_TYPE_NORMAL_PLANET, and STELLAR_TYPE_SUN.
Referenced by FindJSVisibleEntities().
BOOL JSEntityIsJavaScriptVisiblePredicate | ( | Entity * | entity, |
void * | parameter ) |
Definition at line 2090 of file OOJavaScriptEngine.m.
References Entity::isVisibleToScripts, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
BOOL JSFunctionPredicate | ( | Entity * | entity, |
void * | parameter ) |
Definition at line 2047 of file OOJavaScriptEngine.m.
References EXPECT_NOT, JS_IsInRequest, nil, Entity::oo_jsValueInContext:, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSPauseTimeLimiter(), OOJSResumeTimeLimiter(), OOJSStartTimeLimiter, OOJSStopTimeLimiter, and OOJSValueIsFunction().
Referenced by SystemFilteredEntities().
OOINLINE JSContext * OOJSAcquireContext | ( | void | ) |
Definition at line 118 of file OOJavaScriptEngine.h.
References gOOJSMainThreadContext, and JS_BeginRequest.
Referenced by JSValueToStrDbg(), MissionRunCallback(), OOJSFrameCallbacksInvoke(), OOJSFrameCallbacksRemoveAll(), OOJSIDFromString(), OOJSInitJSIDCachePRIVATE(), OOJSStrLiteralCachePRIVATE(), OOStringFromDeciCredits(), OOStringFromJSID(), and SyntaxIssue().
BOOL OOJSArgumentListGetNumber | ( | JSContext * | context, |
NSString * | scriptClass, | ||
NSString * | function, | ||
uintN | argc, | ||
jsval * | argv, | ||
double * | outNumber, | ||
uintN * | outConsumed ) |
Definition at line 1162 of file OOJavaScriptEngine.m.
References OOJSArgumentListGetNumberNoError(), and OOJSReportBadArguments().
Referenced by QuaternionRotate(), QuaternionRotateX(), QuaternionRotateY(), QuaternionRotateZ(), SoundStaticPlayMusic(), VectorMultiply(), VectorRotationTo(), and VectorStaticInterpolate().
BOOL OOJSArgumentListGetNumberNoError | ( | JSContext * | context, |
uintN | argc, | ||
jsval * | argv, | ||
double * | outNumber, | ||
uintN * | outConsumed ) |
Definition at line 1177 of file OOJavaScriptEngine.m.
References EXPECT_NOT, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by OOJSArgumentListGetNumber(), VectorStaticRandom(), VectorStaticRandomDirection(), and VectorStaticRandomDirectionAndLength().
id OOJSBasicPrivateObjectConverter | ( | JSContext * | context, |
JSObject * | object ) |
Definition at line 2441 of file OOJavaScriptEngine.m.
Referenced by InitOOJSConsole(), InitOOJSDock(), InitOOJSEntity(), InitOOJSEquipmentInfo(), InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSManifest(), InitOOJSPlanet(), InitOOJSPlayer(), InitOOJSPlayerShip(), InitOOJSScript(), InitOOJSShip(), InitOOJSShipGroup(), InitOOJSSound(), InitOOJSSoundSource(), InitOOJSStation(), InitOOJSSun(), InitOOJSSystemInfo(), InitOOJSTimer(), InitOOJSVisualEffect(), InitOOJSWaypoint(), and InitOOJSWormhole().
NSString * OOJSDescribeLocation | ( | JSContext * | context, |
JSStackFrame * | stackFrame ) |
Definition at line 894 of file OOJavaScriptEngine.m.
References GetLocationNameAndLine(), nil, sConsoleEvalLineNo, and sConsoleScriptName.
Referenced by OOJSDumpStack().
NSString * OOJSDescribeValue | ( | JSContext * | context, |
jsval | value, | ||
BOOL | abbreviateObjects ) |
Definition at line 1736 of file OOJavaScriptEngine.m.
References DescribeValue().
Referenced by DumpVariable(), and OOJSReportBadPropertyValue().
NSDictionary * OOJSDictionaryFromJSObject | ( | JSContext * | context, |
JSObject * | object ) |
Definition at line 2247 of file OOJavaScriptEngine.m.
References EXPECT_NOT, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSNativeObjectFromJSValue(), and OOStringFromJSString().
Referenced by OOJSDictionaryFromJSValue().
NSDictionary * OOJSDictionaryFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 2232 of file OOJavaScriptEngine.m.
References EXPECT_NOT, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and OOJSDictionaryFromJSObject().
NSDictionary * OOJSDictionaryFromStringTable | ( | JSContext * | context, |
jsval | value ) |
Definition at line 2307 of file OOJavaScriptEngine.m.
References EXPECT_NOT, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOStringFromJSString(), and OOStringFromJSValueEvenIfNull().
Referenced by GlobalExpandDescription(), and GlobalExpandMissionText().
void OOJSDumpStack | ( | JSContext * | context | ) |
Definition at line 737 of file OOJavaScriptEngine.m.
References DumpVariable(), EXPECT_NOT, kOOLogException, nil, OOJSDescribeLocation(), OOLog, OOStringFromJSString(), and sErrorHandlerStackSkip.
Referenced by NSString(OOJavaScriptExtensions)::concatenationOfStringsFromJavaScriptValues:count:separator:inContext:, OperationCallback(), and ReportJSError().
OOINLINE JSClass * OOJSGetClass | ( | JSContext * | cx, |
JSObject * | obj ) |
Definition at line 367 of file OOJavaScriptEngine.h.
Referenced by DescribeValue(), JSIDToStrSafeDbg(), JSValueTypeDbg(), OOJSIsMemberOfSubclass(), OOJSNativeObjectFromJSObject(), OOJSObjectGetterImplPRIVATE(), OOJSObjectWrapperToString(), OOJSReportBadPropertySelector(), and OOJSReportBadPropertyValue().
jsid OOJSIDFromString | ( | NSString * | string | ) |
Definition at line 943 of file OOJavaScriptEngine.m.
References EXPECT, EXPECT_NOT, nil, OOJSAcquireContext(), and OOJSRelinquishContext().
Referenced by JSObjectFromNSDictionary().
OOINLINE BOOL OOJSIsMemberOfSubclass | ( | JSContext * | context, |
JSObject * | object, | ||
JSClass * | superclass ) |
Definition at line 494 of file OOJavaScriptEngine.h.
References OOJSGetClass(), and OOJSIsSubclass().
Referenced by JSObjectGetQuaternion(), and JSObjectGetVector().
BOOL OOJSIsSubclass | ( | JSClass * | putativeSubclass, |
JSClass * | superclass ) |
Definition at line 2163 of file OOJavaScriptEngine.m.
References sRegisteredSubClasses.
Referenced by OOJSIsMemberOfSubclass(), and OOJSObjectGetterImplPRIVATE().
void OOJSMarkConsoleEvalLocation | ( | JSContext * | context, |
JSStackFrame * | stackFrame ) |
Definition at line 918 of file OOJavaScriptEngine.m.
References GetLocationNameAndLine(), sConsoleEvalLineNo, and sConsoleScriptName.
Referenced by SpecialMarkConsoleEntryPoint().
id OOJSNativeObjectFromJSObject | ( | JSContext * | context, |
JSObject * | object ) |
Definition at line 2400 of file OOJavaScriptEngine.m.
References nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSGetClass(), and sObjectConverters.
Referenced by ConsoleClearConsole(), ConsoleSettingsDeleteProperty(), ConsoleSettingsGetProperty(), ConsoleSettingsSetProperty(), GetParameterDictionary(), GlobalSetExtraGuiScreenKeys(), MissionMarkSystem(), MissionUnmarkSystem(), OOJSNativeObjectFromJSValue(), OOJSNativeObjectOfClassFromJSObject(), OOJSObjectWrapperToString(), ShipSetCrew(), ShipSetMaterialsInternal(), ShipStaticSetShipDataForKey(), StationAddShipToShipyard(), SystemSetPopulator(), and VisualEffectSetMaterialsInternal().
id OOJSNativeObjectFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 2368 of file OOJavaScriptEngine.m.
References nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSNativeObjectFromJSObject(), and OOStringFromJSValue().
Referenced by ConsoleSettingsSetProperty(), JSArrayConverter(), JSValueToEquipmentKeyRelaxed(), MissionSetInstructionsInternal(), OOJSDictionaryFromJSObject(), OOJSNativeObjectOfClassFromJSValue(), OoliteCompareVersion(), PlayerSetEscapePodDestination(), PlayerShipSetCustomHUDDial(), ShipRunLegacyScriptActions(), SystemInfoSetPropertyMethod(), and SystemInfoStaticSetInterstellarProperty().
id OOJSNativeObjectOfClassFromJSObject | ( | JSContext * | context, |
JSObject * | object, | ||
Class | requiredClass ) |
Definition at line 2433 of file OOJavaScriptEngine.m.
References nil, and OOJSNativeObjectFromJSObject().
Referenced by ConsoleConsoleMessage(), ScriptAddProperty(), SystemInfoGetProperty(), and SystemInfoSetProperty().
id OOJSNativeObjectOfClassFromJSValue | ( | JSContext * | context, |
jsval | value, | ||
Class | requiredClass ) |
Definition at line 2425 of file OOJavaScriptEngine.m.
References nil, and OOJSNativeObjectFromJSValue().
Referenced by OOShipGroup(OOJavaScriptExtensions)::oo_clearJSSelf:, PlayerShipCancelDockingRequest(), PlayerShipEngageAutopilotToStation(), PlayerShipRequestDockingClearance(), ShipGroupAddShip(), ShipGroupConstruct(), ShipGroupRemoveShip(), ShipGroupSetProperty(), ShipSetProperty(), and SoundFromJSValue().
JSObject * OOJSObjectFromNativeObject | ( | JSContext * | context, |
id | object ) |
Definition at line 1442 of file OOJavaScriptEngine.m.
References OOJSValueFromNativeObject().
BOOL OOJSObjectGetterImplPRIVATE | ( | JSContext * | context, |
JSObject * | object, | ||
JSClass * | requiredJSClass, | ||
Class | requiredObjCClass, | ||
const char * | name, | ||
id * | outObject ) |
Definition at line 2180 of file OOJavaScriptEngine.m.
References EXPECT_NOT, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSGetClass(), OOJSIsSubclass(), OOJSReportError(), and OOStringFromJSValue().
void OOJSObjectWrapperFinalize | ( | JSContext * | context, |
JSObject * | this ) |
Definition at line 2001 of file OOJavaScriptEngine.m.
References nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT_VOID.
JSBool OOJSObjectWrapperToString | ( | JSContext * | context, |
uintN | argc, | ||
jsval * | vp ) |
Definition at line 2017 of file OOJavaScriptEngine.m.
References nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJS_THIS, OOJSGetClass(), and OOJSNativeObjectFromJSObject().
void OOJSPauseTimeLimiter | ( | void | ) |
Definition at line 133 of file OOJSEngineTimeManagement.m.
References OODisposeHighResTime, OOGetHighResTime, sLimiterPauseDepth, and sLimiterPauseStart.
Referenced by NSString(OOJavaScriptExtensions)::concatenationOfStringsFromJavaScriptValues:count:separator:inContext:, ConsoleConsoleMessage(), ConsoleIsExecutableJavaScript(), ConsoleSettingsSetProperty(), OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, JSFunctionPredicate(), MissionRunScreen(), OOJSEndProfiling(), ReportJSError(), SoundFromJSValue(), SystemFilteredEntities(), and SystemInfoStaticFilteredSystems().
void OOJSRegisterObjectConverter | ( | JSClass * | theClass, |
OOJSClassConverterCallback | converter ) |
Definition at line 2454 of file OOJavaScriptEngine.m.
References nil, and sObjectConverters.
Referenced by InitOOJSConsole(), InitOOJSDock(), InitOOJSEntity(), InitOOJSEquipmentInfo(), InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSManifest(), InitOOJSMissionVariables(), InitOOJSPlanet(), InitOOJSPlayer(), InitOOJSPlayerShip(), InitOOJSScript(), InitOOJSShip(), InitOOJSShipGroup(), InitOOJSSound(), InitOOJSSoundSource(), InitOOJSStation(), InitOOJSSun(), InitOOJSSystemInfo(), InitOOJSTimer(), InitOOJSVisualEffect(), InitOOJSWaypoint(), and InitOOJSWormhole().
void OOJSRegisterSubclass | ( | JSClass * | subclass, |
JSClass * | superclass ) |
Definition at line 2141 of file OOJavaScriptEngine.m.
References sRegisteredSubClasses.
Referenced by InitOOJSDock(), InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSPlanet(), InitOOJSPlayerShip(), InitOOJSShip(), InitOOJSStation(), InitOOJSSun(), InitOOJSVisualEffect(), InitOOJSWaypoint(), and InitOOJSWormhole().
OOINLINE void OOJSRelinquishContext | ( | JSContext * | context | ) |
Definition at line 128 of file OOJavaScriptEngine.h.
References gOOJSMainThreadContext, JS_EndRequest, and JS_IsInRequest.
Referenced by JSValueToStrDbg(), MissionRunCallback(), OOJSFrameCallbacksInvoke(), OOJSFrameCallbacksRemoveAll(), OOJSIDFromString(), OOJSInitJSIDCachePRIVATE(), OOJSStrLiteralCachePRIVATE(), OOStringFromDeciCredits(), OOStringFromJSID(), and SyntaxIssue().
void OOJSReportBadArguments | ( | JSContext * | context, |
NSString * | scriptClass, | ||
NSString * | function, | ||
uintN | argc, | ||
jsval * | argv, | ||
NSString * | message, | ||
NSString * | expectedArgsDescription ) |
Definition at line 1139 of file OOJavaScriptEngine.m.
References nil, and OOJSReportErrorForCaller().
Referenced by ClockAddSeconds(), ClockClockStringForTime(), OOManifest::dealloc, FontMeasureString(), DockEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GetRelativeToAndRange(), GetThisQuaternion(), GetThisVector(), GlobalAddFrameCallback(), GlobalAutoAIForRole(), GlobalClearExtraGuiScreenKeys(), GlobalDisplayNameForCommodity(), GlobalExpandDescription(), GlobalExpandMissionText(), GlobalGetGuiColorSettingForKey(), GlobalGetScreenBackgroundForKey(), GlobalIsValidFrameCallback(), GlobalKeyBindingDescription(), GlobalRandomInhabitantsDescription(), GlobalRemoveFrameCallback(), GlobalSetExtraGuiScreenKeys(), GlobalSetGuiColorSettingForKey(), GlobalSetScreenBackground(), GlobalSetScreenBackgroundForKey(), GlobalSetScreenOverlay(), GlobalTakeSnapShot(), Entity(OODebugInspector)::inspect, PlayerEntity(OOJavaScriptExtensions)::javaScriptEngineWillReset:, ManifestComment(), ManifestSetComment(), ManifestShortComment(), MissionMarkSystem(), MissionRunScreen(), MissionSetInstructionsInternal(), MissionUnmarkSystem(), OOEquipmentType(OOJavaScriptExtensions)::oo_clearJSSelf:, OOShipGroup(OOJavaScriptExtensions)::oo_clearJSSelf:, OOSound(OOJavaScriptExtentions)::oo_jsClassName, OOJSArgumentListGetNumber(), PlayerAddMessageToArrivalReport(), PlayerAudioMessage(), PlayerCommsMessage(), PlayerConsoleMessage(), PlayerEndScenario(), PlayerReplaceShip(), PlayerSetEscapePodDestination(), PlayerSetPlayerRole(), PlayerShipAddParcel(), PlayerShipAddPassenger(), PlayerShipAwardContract(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipBeginGalacticHyperspaceCountdown(), PlayerShipBeginHyperspaceCountdown(), PlayerShipCancelDockingRequest(), PlayerShipEngageAutopilotToStation(), PlayerShipHideHUDSelector(), PlayerShipRemoveContract(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipRequestDockingClearance(), PlayerShipSetCustomHUDDial(), PlayerShipSetCustomView(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionText(), PlayerShipSetPrimedEquipment(), PlayerShipShowHUDSelector(), PlayerShipUseSpecialCargo(), QuaternionConstruct(), QuaternionFromArgumentList(), ShipAddCargoEntity(), ShipAddCollisionException(), ShipAddDefenseTarget(), ShipAdjustCargo(), ShipAwardEquipment(), ShipCanAwardEquipment(), ShipCheckScanner(), ShipCommsMessage(), ShipDealEnergyDamage(), ShipDumpCargo(), ShipEjectItem(), ShipEjectSpecificItem(), ShipEnterWormhole(), ShipEquipmentStatus(), ShipExitSystem(), ShipGroupAddShip(), ShipGroupConstruct(), ShipGroupRemoveShip(), ShipHasEquipmentProviding(), ShipHasRole(), ShipOfferToEscort(), ShipPatrolReportIn(), ShipReactToAIMessage(), ShipRemove(), ShipRemoveCollisionException(), ShipRemoveDefenseTarget(), ShipRemoveEquipment(), ShipRunLegacyScriptActions(), ShipSendAIMessage(), ShipSetAI(), ShipSetBounty(), ShipSetCargo(), ShipSetCargoType(), ShipSetCrew(), ShipSetEquipmentStatus(), ShipSetMaterials(), ShipSetScript(), ShipSetShaders(), ShipSpawn(), ShipStaticKeysForRole(), ShipStaticRoleIsInCategory(), ShipStaticSetShipDataForKey(), ShipStaticShipDataForKey(), ShipSwitchAI(), ShipThreatAssessment(), SoundSourcePlay(), SoundStaticLoad(), SoundStaticPlayMusic(), SpecialJSWarning(), StationAbortDockingForShip(), StationAddShipToShipyard(), StationCanDockShip(), StationLaunchShipWithRole(), StationSetInterface(), StationSetMarketPrice(), StationSetMarketQuantity(), SystemAddMoon(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemEntitiesWithScanClass(), SystemFilteredEntities(), SystemInfoDistanceToSystem(), SystemInfoRouteToSystem(), SystemInfoSamplePrice(), SystemInfoSetPropertyMethod(), SystemInfoStaticFilteredSystems(), SystemInfoStaticSetInterstellarProperty(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), SystemLocationFromCode(), SystemSetPopulator(), SystemSetWaypoint(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemStaticInfoForSystem(), SystemStaticSystemIDForName(), SystemStaticSystemNameForID(), TimerConstruct(), VectorConstruct(), VectorFromArgumentList(), VectorFromCoordinateSystem(), VectorStaticInterpolate(), VectorToCoordinateSystem(), VisualEffectScale(), VisualEffectSetMaterials(), and VisualEffectSetShaders().
void OOJSReportBadPropertySelector | ( | JSContext * | context, |
JSObject * | thisObj, | ||
jsid | propID, | ||
JSPropertySpec * | propertySpec ) |
Definition at line 1120 of file OOJavaScriptEngine.m.
References OOJSGetClass(), OOJSReportError(), and OOStringFromJSPropertyIDAndSpec().
Referenced by ClockGetProperty(), ConsoleGetProperty(), ConsoleSetProperty(), DockGetProperty(), DockSetProperty(), EntityGetProperty(), EntitySetProperty(), EquipmentInfoGetProperty(), EquipmentInfoSetProperty(), ExhaustPlumeGetProperty(), ExhaustPlumeSetProperty(), FlasherGetProperty(), FlasherSetProperty(), OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOWaypointEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, WormholeEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GlobalGetProperty(), GlobalSetProperty(), ManifestGetProperty(), MissionGetProperty(), MissionSetProperty(), OoliteGetProperty(), PlanetGetProperty(), PlayerGetProperty(), PlayerSetProperty(), PlayerShipGetProperty(), PlayerShipSetProperty(), QuaternionGetProperty(), QuaternionSetProperty(), ShipGetProperty(), ShipGroupGetProperty(), ShipGroupSetProperty(), ShipSetProperty(), SoundGetProperty(), SoundSourceGetProperty(), SoundSourceSetProperty(), StationGetProperty(), StationSetProperty(), SunGetProperty(), SystemGetProperty(), SystemInfoGetProperty(), SystemSetProperty(), TimerGetProperty(), TimerSetProperty(), VectorGetProperty(), VectorSetProperty(), VisualEffectGetProperty(), VisualEffectSetProperty(), WaypointGetProperty(), and WormholeGetProperty().
void OOJSReportBadPropertyValue | ( | JSContext * | context, |
JSObject * | thisObj, | ||
jsid | propID, | ||
JSPropertySpec * | propertySpec, | ||
jsval | value ) |
Definition at line 1129 of file OOJavaScriptEngine.m.
References OOJSDescribeValue(), OOJSGetClass(), OOJSReportError(), and OOStringFromJSPropertyIDAndSpec().
Referenced by DockSetProperty(), EntitySetProperty(), EquipmentInfoSetProperty(), ExhaustPlumeSetProperty(), FlasherSetProperty(), OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOWaypointEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, WormholeEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GlobalSetProperty(), ManifestSetProperty(), MissionSetProperty(), PlayerSetProperty(), PlayerShipSetProperty(), QuaternionSetProperty(), ShipGroupSetProperty(), ShipSetProperty(), SoundSourceSetProperty(), StationSetProperty(), SystemSetProperty(), TimerSetProperty(), VectorSetProperty(), and VisualEffectSetProperty().
void OOJSReportError | ( | JSContext * | context, |
NSString * | format, | ||
... ) |
Definition at line 1000 of file OOJavaScriptEngine.m.
References OOJSReportErrorWithArguments().
Referenced by ConsoleClearConsole(), ConsoleConsoleMessage(), ConsoleGetProfile(), ConsoleProfile(), ConsoleSettingsDeleteProperty(), ConsoleSettingsGetProperty(), ConsoleSettingsSetProperty(), ConsoleTrace(), EntitySetProperty(), GlobalAddFrameCallback(), MissionVariablesSetProperty(), OOJSCallObjCObjectMethod(), OOJSObjectGetterImplPRIVATE(), OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), OOJSReportErrorForCaller(), OOJSReportWrappedException(), OOJSUnconstructableConstruct(), PlayerReplaceShip(), PlayerSetEscapePodDestination(), PlayerShipRemoveAllCargo(), PlayerShipResetCustomView(), PlayerShipSetCustomView(), PlayerShipSetProperty(), RemoveOrExplodeShip(), ShipAdjustCargo(), ShipEnterWormhole(), ShipGroupConstruct(), ShipRemove(), ShipSetProperty(), SoundSourceConstruct(), SystemInfoGetProperty(), and TimerConstruct().
void OOJSReportErrorForCaller | ( | JSContext * | context, |
NSString * | scriptClass, | ||
NSString * | function, | ||
NSString * | format, | ||
... ) |
Definition at line 1010 of file OOJavaScriptEngine.m.
References CallerPrefix(), nil, and OOJSReportError().
Referenced by OOJSReportBadArguments(), ShipExitAI(), ShipExitSystem(), ShipReactToAIMessage(), ShipSendAIMessage(), ShipSetAI(), ShipSetEquipmentStatus(), ShipSetScript(), ShipSwitchAI(), SystemInfoDistanceToSystem(), SystemInfoRouteToSystem(), and SystemInfoSamplePrice().
void OOJSReportErrorWithArguments | ( | JSContext * | context, |
NSString * | format, | ||
va_list | args ) |
Definition at line 1031 of file OOJavaScriptEngine.m.
References JS_IsInRequest, and nil.
Referenced by OOJSReportError().
void OOJSReportWarning | ( | JSContext * | context, |
NSString * | format, | ||
... ) |
Definition at line 1072 of file OOJavaScriptEngine.m.
References OOJSReportWarningWithArguments().
Referenced by ConsoleConsoleMessage(), ConsoleSettingsSetProperty(), EntityFromArgumentList(), EquipmentInfoSetProperty(), OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GetJSSystemInfoForSystem(), GlobalRemoveFrameCallback(), GlobalSetScreenBackground(), GlobalSetScreenOverlay(), GlobalTakeSnapShot(), ManifestSetProperty(), MissionRunScreen(), MissionRunShipLibrary(), MissionSetInstructionsInternal(), OOJSReportWarningForCaller(), PlayerShipSetProperty(), ScriptAddProperty(), ShipFireECM(), ShipSetMaterialsInternal(), ShipSetShaders(), SpecialJSWarning(), TimerSetProperty(), VisualEffectSetMaterialsInternal(), and VisualEffectSetShaders().
void OOJSReportWarningForCaller | ( | JSContext * | context, |
NSString * | scriptClass, | ||
NSString * | function, | ||
NSString * | format, | ||
... ) |
Definition at line 1082 of file OOJavaScriptEngine.m.
References CallerPrefix(), nil, and OOJSReportWarning().
Referenced by StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, ShipAddCargoEntity(), ShipDumpCargo(), ShipExitAI(), ShipGroupAddShip(), ShipSetEquipmentStatus(), and StationAddShipToShipyard().
void OOJSReportWarningWithArguments | ( | JSContext * | context, |
NSString * | format, | ||
va_list | args ) |
Definition at line 1103 of file OOJavaScriptEngine.m.
References nil.
Referenced by OOJSReportWarning(), and SyntaxIssue().
void OOJSResumeTimeLimiter | ( | void | ) |
Definition at line 143 of file OOJSEngineTimeManagement.m.
References OODisposeHighResTime, OOGetHighResTime, OOHighResTimeDeltaInSeconds(), sLimiterPauseDepth, sLimiterPauseStart, and sLimiterTimeLimit.
Referenced by NSString(OOJavaScriptExtensions)::concatenationOfStringsFromJavaScriptValues:count:separator:inContext:, ConsoleConsoleMessage(), ConsoleIsExecutableJavaScript(), ConsoleSettingsSetProperty(), OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, JSFunctionPredicate(), MissionRunScreen(), OOJSEndProfiling(), ReportJSError(), SoundFromJSValue(), SystemFilteredEntities(), and SystemInfoStaticFilteredSystems().
void OOJSSetWarningOrErrorStackSkip | ( | unsigned | skip | ) |
Definition at line 1156 of file OOJavaScriptEngine.m.
References sErrorHandlerStackSkip.
Referenced by SpecialJSWarning().
void OOJSStrLiteralCachePRIVATE | ( | const char * | string, |
jsval * | strCache, | ||
BOOL * | inited ) |
Definition at line 1543 of file OOJavaScriptEngine.m.
References EXPECT_NOT, OOJSAcquireContext(), and OOJSRelinquishContext().
JSBool OOJSUnconstructableConstruct | ( | JSContext * | context, |
uintN | argc, | ||
jsval * | vp ) |
Definition at line 1987 of file OOJavaScriptEngine.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportError(), and OOStringFromJSString().
Referenced by InitOOJSClock(), InitOOJSConsole(), InitOOJSDock(), InitOOJSEntity(), InitOOJSEquipmentInfo(), InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSManifest(), InitOOJSMission(), InitOOJSOolite(), InitOOJSPlanet(), InitOOJSPlayer(), InitOOJSPlayerShip(), InitOOJSScript(), InitOOJSShip(), InitOOJSSound(), InitOOJSStation(), InitOOJSSun(), InitOOJSSystem(), InitOOJSSystemInfo(), InitOOJSVisualEffect(), InitOOJSWaypoint(), and InitOOJSWormhole().
Definition at line 189 of file OOJavaScriptEngine.h.
Referenced by ClockGetProperty(), ConsoleGetProperty(), DockGetProperty(), EntityGetProperty(), EquipmentInfoGetProperty(), FlasherGetProperty(), OOStringFromDeciCredits(), PlanetGetProperty(), PlayerGetProperty(), PlayerShipGetProperty(), ShipGetProperty(), SoundSourceGetProperty(), StationGetProperty(), SunGetProperty(), SystemGetProperty(), TimerGetProperty(), and VisualEffectGetProperty().
OOINLINE jsval OOJSValueFromNativeObject | ( | JSContext * | context, |
id | object ) |
Definition at line 238 of file OOJavaScriptEngine.h.
References nil.
Referenced by ClockGetProperty(), ConsoleGetProfile(), ConsoleGetProperty(), ConsoleProfile(), EntityGetProperty(), EquipmentInfoGetAllEqipment(), EquipmentInfoGetProperty(), ExhaustPlumeGetProperty(), FlasherGetProperty(), GetJSSystemInfoForSystem(), Entity(OODebugInspector)::inspect, ManifestGetProperty(), MissionGetProperty(), MissionRunCallback(), MissionRunScreen(), MissionVariablesGetProperty(), OOJSObjectFromNativeObject(), OoliteGetProperty(), PlanetGetProperty(), PlayerGetProperty(), PlayerShipGetProperty(), RunDeferredOperations(), ShipGetProperty(), ShipGroupGetProperty(), SoundGetProperty(), SoundSourceGetProperty(), StationGetProperty(), SunGetProperty(), SystemGetProperty(), SystemInfoStaticFilteredSystems(), VisualEffectGetProperty(), WaypointGetProperty(), and WormholeGetProperty().
OOINLINE BOOL OOJSValueIsArray | ( | JSContext * | context, |
jsval | value ) |
Definition at line 397 of file OOJavaScriptEngine.h.
OOINLINE BOOL OOJSValueIsFunction | ( | JSContext * | context, |
jsval | value ) |
Definition at line 383 of file OOJavaScriptEngine.h.
Referenced by DescribeValue(), GlobalAddFrameCallback(), GlobalSetExtraGuiScreenKeys(), Entity(OODebugInspector)::inspect, JSFunctionPredicate(), MissionRunScreen(), StationSetInterface(), SystemFilteredEntities(), and SystemInfoStaticFilteredSystems().
NSString * OOStringFromJSID | ( | jsid | propID | ) |
Definition at line 975 of file OOJavaScriptEngine.m.
References nil, OOJSAcquireContext(), OOJSRelinquishContext(), and OOStringFromJSString().
Referenced by MissionVariablesSetProperty().
NSString * OOStringFromJSPropertyIDAndSpec | ( | JSContext * | context, |
jsid | propID, | ||
JSPropertySpec * | propertySpec ) |
Definition at line 1611 of file OOJavaScriptEngine.m.
References OOStringFromJSString().
Referenced by OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), and ShipSetProperty().
NSString * OOStringFromJSString | ( | JSContext * | context, |
JSString * | string ) |
Definition at line 1562 of file OOJavaScriptEngine.m.
References EXPECT, EXPECT_NOT, nil, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by ConsoleSettingsDeleteProperty(), ConsoleSettingsGetProperty(), ConsoleSettingsSetProperty(), KeyForPropertyID(), ManifestGetProperty(), ManifestSetProperty(), OOJSDictionaryFromJSObject(), OOJSDictionaryFromStringTable(), OOJSDumpStack(), OOJSUnconstructableConstruct(), OOStringFromJSID(), OOStringFromJSPropertyIDAndSpec(), OOStringFromJSValueEvenIfNull(), SystemInfoGetProperty(), SystemInfoSetProperty(), and WorldScriptsGetProperty().
NSString * OOStringFromJSValue | ( | JSContext * | context, |
jsval | value ) |
Definition at line 1597 of file OOJavaScriptEngine.m.
References EXPECT, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and OOStringFromJSValueEvenIfNull().
Referenced by ConsoleConsoleMessage(), ConsoleDisplayMessagesInClass(), ConsoleIsExecutableJavaScript(), ConsoleSetDisplayMessagesInClass(), ConsoleSetProperty(), ConsoleSettingsSetProperty(), OOManifest::dealloc, FontMeasureString(), OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOWaypointEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GetParameterString(), GlobalAutoAIForRole(), GlobalClearExtraGuiScreenKeys(), GlobalDisplayNameForCommodity(), GlobalExpandDescription(), GlobalExpandMissionText(), GlobalGetGuiColorSettingForKey(), GlobalGetScreenBackgroundForKey(), GlobalKeyBindingDescription(), GlobalLog(), GlobalSetExtraGuiScreenKeys(), GlobalSetGuiColorSettingForKey(), GlobalSetScreenBackgroundForKey(), GlobalTakeSnapShot(), JSStringConverter(), JSValueToEquipmentType(), ManifestComment(), ManifestSetComment(), ManifestShortComment(), MissionAddMessageText(), MissionRunScreen(), MissionSetInstructionsInternal(), MissionVariablesSetProperty(), OOEquipmentType(OOJavaScriptExtensions)::oo_clearJSSelf:, OOSound(OOJavaScriptExtentions)::oo_jsClassName, OOJSCallObjCObjectMethod(), OOJSNativeObjectFromJSValue(), OOJSObjectGetterImplPRIVATE(), OOStringFromDeciCredits(), PlayerAddMessageToArrivalReport(), PlayerAudioMessage(), PlayerCommsMessage(), PlayerConsoleMessage(), PlayerEndScenario(), PlayerReplaceShip(), PlayerSetPlayerRole(), PlayerSetProperty(), PlayerShipAddParcel(), PlayerShipAddPassenger(), PlayerShipAwardContract(), PlayerShipHideHUDSelector(), PlayerShipRemoveContract(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipSetCustomHUDDial(), PlayerShipSetCustomView(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionText(), PlayerShipSetPrimedEquipment(), PlayerShipSetProperty(), PlayerShipShowHUDSelector(), PlayerShipUseSpecialCargo(), ShipAdjustCargo(), ShipCanAwardEquipment(), ShipCommsMessage(), ShipDumpCargo(), ShipEjectItem(), ShipEjectSpecificItem(), ShipExitAI(), ShipGroupConstruct(), ShipHasEquipmentProviding(), ShipHasRole(), ShipReactToAIMessage(), ShipSendAIMessage(), ShipSetAI(), ShipSetBounty(), ShipSetCargo(), ShipSetCargoType(), ShipSetEquipmentStatus(), ShipSetProperty(), ShipSetScript(), ShipSpawn(), ShipStaticKeysForRole(), ShipStaticRoleIsInCategory(), ShipStaticSetShipDataForKey(), ShipStaticShipDataForKey(), ShipSwitchAI(), SoundFromJSValue(), SoundStaticLoad(), SoundStaticPlayMusic(), SpecialJSWarning(), StationLaunchShipWithRole(), StationSetInterface(), StationSetMarketPrice(), StationSetMarketQuantity(), StationSetProperty(), SystemAddMoon(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemInfoRouteToSystem(), SystemInfoSamplePrice(), SystemInfoSetPropertyMethod(), SystemInfoStaticSetInterstellarProperty(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), SystemLegacySpawnShip(), SystemLocationFromCode(), SystemSetPopulator(), SystemSetProperty(), SystemSetWaypoint(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemStaticSystemIDForName(), VectorFromCoordinateSystem(), VectorToCoordinateSystem(), and VisualEffectSetProperty().
NSString * OOStringFromJSValueEvenIfNull | ( | JSContext * | context, |
jsval | value ) |
Definition at line 1584 of file OOJavaScriptEngine.m.
References JS_IsInRequest, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and OOStringFromJSString().
Referenced by DescribeValue(), DumpVariable(), GlobalLog(), MissionSetInstructionsInternal(), OOJSDictionaryFromStringTable(), OOStringFromJSValue(), ShipSetMaterialsInternal(), ShipSetShaders(), VisualEffectSetMaterialsInternal(), and VisualEffectSetShaders().
|
extern |
Definition at line 101 of file OOJavaScriptEngine.m.
|
extern |
Definition at line 100 of file OOJavaScriptEngine.m.