|
Oolite
|
import "OOCocoa.h"import "Universe.h"import "PlayerEntity.h"import "PlayerEntityLegacyScriptEngine.h"#include <jsapi.h>import "OOJSPropID.h"import "OOJSEngineNativeWrappers.h"
Include dependency graph for OOJavaScriptEngine.h:
This graph shows which files directly or indirectly include this file: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) (((void)(context)), YES) |
| #define | JS_BeginRequest(context) do {} while (0) |
| #define | JS_EndRequest(context) do {} while (0) |
| #define | OOJSSTR(str) ({ static jsval strCache; static BOOL inited; if (EXPECT_NOT(!inited)) OOJSStrLiteralCachePRIVATE(""str, &strCache, &inited); strCache; }) |
| #define | DEFINE_JS_OBJECT_GETTER(NAME, JSCLASS, JSPROTO, OBJCCLASSNAME) |
| #define | OOJSAddGCValueRoot(context, root, name) JS_AddNamedValueRoot((context), (root), "" name) |
| #define | OOJSAddGCStringRoot(context, root, name) JS_AddNamedStringRoot((context), (root), "" name) |
| #define | OOJSAddGCObjectRoot(context, root, name) JS_AddNamedObjectRoot((context), (root), "" name) |
| #define | OOJSAddGCThingRoot(context, root, name) JS_AddNamedGCThingRoot((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) JS_SET_RVAL(context, vp, v) |
| #define | OOJS_RETURN(v) do { OOJS_SET_RVAL(v); return YES; } while (0) |
| #define | OOJS_RETURN_JSOBJECT(o) OOJS_RETURN(OBJECT_TO_JSVAL(o)) |
| #define | OOJS_RETURN_VOID OOJS_RETURN(JSVAL_VOID) |
| #define | OOJS_RETURN_NULL OOJS_RETURN(JSVAL_NULL) |
| #define | OOJS_RETURN_BOOL(v) OOJS_RETURN(OOJSValueFromBOOL(v)) |
| #define | OOJS_RETURN_INT(v) OOJS_RETURN(INT_TO_JSVAL(v)) |
| #define | OOJS_RETURN_OBJECT(o) OOJS_RETURN(OOJSValueFromNativeObject(context, o)) |
| #define | OOJS_RETURN_WITH_HELPER(helper, value) |
| #define | OOJS_RETURN_VECTOR(value) OOJS_RETURN_WITH_HELPER(VectorToJSValue, value) |
| #define | OOJS_RETURN_HPVECTOR(value) OOJS_RETURN_WITH_HELPER(HPVectorToJSValue, value) |
| #define | OOJS_RETURN_QUATERNION(value) OOJS_RETURN_WITH_HELPER(QuaternionToJSValue, value) |
| #define | OOJS_RETURN_DOUBLE(value) OOJS_RETURN_WITH_HELPER(JS_NewNumberValue, 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 | ) | do {} while (0) |
Definition at line 112 of file OOJavaScriptEngine.h.
| #define JS_EndRequest | ( | context | ) | do {} while (0) |
Definition at line 113 of file OOJavaScriptEngine.h.
| #define JS_IsInRequest | ( | context | ) | (((void)(context)), YES) |
Definition at line 111 of file OOJavaScriptEngine.h.
| #define OOJS_ARGV JS_ARGV(context, vp) |
Definition at line 661 of file OOJavaScriptEngine.h.
| #define OOJS_METHOD_READONLY OOJS_PROP_HIDDEN_READONLY |
Definition at line 647 of file OOJavaScriptEngine.h.
| #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.
| #define OOJS_PROP_READONLY_CB (OOJS_PROP_READONLY | JSPROP_SHARED) |
Definition at line 651 of file OOJavaScriptEngine.h.
| #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 | ) | do { OOJS_SET_RVAL(v); return YES; } while (0) |
Definition at line 665 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_BOOL | ( | v | ) | OOJS_RETURN(OOJSValueFromBOOL(v)) |
Definition at line 669 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_DOUBLE | ( | value | ) | OOJS_RETURN_WITH_HELPER(JS_NewNumberValue, value) |
Definition at line 683 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_HPVECTOR | ( | value | ) | OOJS_RETURN_WITH_HELPER(HPVectorToJSValue, value) |
Definition at line 681 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_INT | ( | v | ) | OOJS_RETURN(INT_TO_JSVAL(v)) |
Definition at line 670 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_JSOBJECT | ( | o | ) | OOJS_RETURN(OBJECT_TO_JSVAL(o)) |
Definition at line 666 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_NULL OOJS_RETURN(JSVAL_NULL) |
Definition at line 668 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_OBJECT | ( | o | ) | OOJS_RETURN(OOJSValueFromNativeObject(context, o)) |
Definition at line 671 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_QUATERNION | ( | value | ) | OOJS_RETURN_WITH_HELPER(QuaternionToJSValue, value) |
Definition at line 682 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_VECTOR | ( | value | ) | OOJS_RETURN_WITH_HELPER(VectorToJSValue, value) |
Definition at line 680 of file OOJavaScriptEngine.h.
| #define OOJS_RETURN_VOID OOJS_RETURN(JSVAL_VOID) |
Definition at line 667 of file OOJavaScriptEngine.h.
| #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.
| #define OOJS_SET_RVAL | ( | v | ) | JS_SET_RVAL(context, vp, v) |
Definition at line 663 of file OOJavaScriptEngine.h.
| #define OOJS_THIS JS_THIS_OBJECT(context, vp) |
Definition at line 660 of file OOJavaScriptEngine.h.
| #define OOJSAddGCObjectRoot | ( | context, | |
| root, | |||
| name | |||
| ) | JS_AddNamedObjectRoot((context), (root), "" name) |
Definition at line 535 of file OOJavaScriptEngine.h.
| #define OOJSAddGCStringRoot | ( | context, | |
| root, | |||
| name | |||
| ) | JS_AddNamedStringRoot((context), (root), "" name) |
Definition at line 534 of file OOJavaScriptEngine.h.
| #define OOJSAddGCThingRoot | ( | context, | |
| root, | |||
| name | |||
| ) | JS_AddNamedGCThingRoot((context), (root), "" name) |
Definition at line 536 of file OOJavaScriptEngine.h.
| #define OOJSAddGCValueRoot | ( | context, | |
| root, | |||
| name | |||
| ) | JS_AddNamedValueRoot((context), (root), "" name) |
Definition at line 533 of file OOJavaScriptEngine.h.
| #define OOJSENGINE_MONITOR_SUPPORT OOLITE_DEBUG |
Definition at line 33 of file OOJavaScriptEngine.h.
| #define OOJSSTR | ( | str | ) | ({ static jsval strCache; static BOOL inited; if (EXPECT_NOT(!inited)) OOJSStrLiteralCachePRIVATE(""str, &strCache, &inited); strCache; }) |
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 2133 of file OOJavaScriptEngine.m.
| BOOL JSEntityIsJavaScriptSearchablePredicate | ( | Entity * | entity, |
| void * | parameter | ||
| ) |
Definition at line 2099 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().
Here is the caller graph for this function:| BOOL JSEntityIsJavaScriptVisiblePredicate | ( | Entity * | entity, |
| void * | parameter | ||
| ) |
Definition at line 2089 of file OOJavaScriptEngine.m.
References Entity::isVisibleToScripts, OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Here is the call graph for this function:| BOOL JSFunctionPredicate | ( | Entity * | entity, |
| void * | parameter | ||
| ) |
Definition at line 2046 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| id OOJSBasicPrivateObjectConverter | ( | JSContext * | context, |
| JSObject * | object | ||
| ) |
Definition at line 2440 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().
Here is the caller graph for this function:| NSString * OOJSDescribeLocation | ( | JSContext * | context, |
| JSStackFrame * | stackFrame | ||
| ) |
Definition at line 894 of file OOJavaScriptEngine.m.
References GetLocationNameAndLine(), nil, sConsoleEvalLineNo, and sConsoleScriptName.
Referenced by OOJSDumpStack().
Here is the call graph for this function:
Here is the caller graph for this function:| NSString * OOJSDescribeValue | ( | JSContext * | context, |
| jsval | value, | ||
| BOOL | abbreviateObjects | ||
| ) |
Definition at line 1735 of file OOJavaScriptEngine.m.
References DescribeValue().
Referenced by DumpVariable(), and OOJSReportBadPropertyValue().
Here is the call graph for this function:
Here is the caller graph for this function:| NSDictionary * OOJSDictionaryFromJSObject | ( | JSContext * | context, |
| JSObject * | object | ||
| ) |
Definition at line 2246 of file OOJavaScriptEngine.m.
References EXPECT_NOT, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSNativeObjectFromJSValue(), and OOStringFromJSString().
Referenced by OOJSDictionaryFromJSValue().
Here is the call graph for this function:
Here is the caller graph for this function:| NSDictionary * OOJSDictionaryFromJSValue | ( | JSContext * | context, |
| jsval | value | ||
| ) |
Definition at line 2231 of file OOJavaScriptEngine.m.
References EXPECT_NOT, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and OOJSDictionaryFromJSObject().
Here is the call graph for this function:| NSDictionary * OOJSDictionaryFromStringTable | ( | JSContext * | context, |
| jsval | value | ||
| ) |
Definition at line 2306 of file OOJavaScriptEngine.m.
References EXPECT_NOT, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOStringFromJSString(), and OOStringFromJSValueEvenIfNull().
Referenced by GlobalExpandDescription(), and GlobalExpandMissionText().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| jsid OOJSIDFromString | ( | NSString * | string | ) |
Definition at line 943 of file OOJavaScriptEngine.m.
References EXPECT, EXPECT_NOT, nil, OOJSAcquireContext(), and OOJSRelinquishContext().
Referenced by JSObjectFromNSDictionary().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| BOOL OOJSIsSubclass | ( | JSClass * | putativeSubclass, |
| JSClass * | superclass | ||
| ) |
Definition at line 2162 of file OOJavaScriptEngine.m.
References sRegisteredSubClasses.
Referenced by OOJSIsMemberOfSubclass(), and OOJSObjectGetterImplPRIVATE().
Here is the caller graph for this function:| void OOJSMarkConsoleEvalLocation | ( | JSContext * | context, |
| JSStackFrame * | stackFrame | ||
| ) |
Definition at line 918 of file OOJavaScriptEngine.m.
References GetLocationNameAndLine(), sConsoleEvalLineNo, and sConsoleScriptName.
Referenced by SpecialMarkConsoleEntryPoint().
Here is the call graph for this function:
Here is the caller graph for this function:| id OOJSNativeObjectFromJSObject | ( | JSContext * | context, |
| JSObject * | object | ||
| ) |
Definition at line 2399 of file OOJavaScriptEngine.m.
References nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and OOJSGetClass().
Referenced by ConsoleClearConsole(), ConsoleSettingsDeleteProperty(), ConsoleSettingsGetProperty(), ConsoleSettingsSetProperty(), GetParameterDictionary(), GlobalSetExtraGuiScreenKeys(), MissionMarkSystem(), MissionUnmarkSystem(), OOJSNativeObjectFromJSValue(), OOJSNativeObjectOfClassFromJSObject(), OOJSObjectWrapperToString(), ShipSetCrew(), ShipSetMaterialsInternal(), ShipStaticSetShipDataForKey(), StationAddShipToShipyard(), SystemSetPopulator(), and VisualEffectSetMaterialsInternal().
Here is the call graph for this function:
Here is the caller graph for this function:| id OOJSNativeObjectFromJSValue | ( | JSContext * | context, |
| jsval | value | ||
| ) |
Definition at line 2367 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().
Here is the call graph for this function:
Here is the caller graph for this function:| id OOJSNativeObjectOfClassFromJSObject | ( | JSContext * | context, |
| JSObject * | object, | ||
| Class | requiredClass | ||
| ) |
Definition at line 2432 of file OOJavaScriptEngine.m.
References nil, and OOJSNativeObjectFromJSObject().
Referenced by ConsoleConsoleMessage(), ScriptAddProperty(), SystemInfoGetProperty(), and SystemInfoSetProperty().
Here is the call graph for this function:
Here is the caller graph for this function:| id OOJSNativeObjectOfClassFromJSValue | ( | JSContext * | context, |
| jsval | value, | ||
| Class | requiredClass | ||
| ) |
Definition at line 2424 of file OOJavaScriptEngine.m.
References nil, and OOJSNativeObjectFromJSValue().
Referenced by OOShipGroup(OOJavaScriptExtensions)::oo_clearJSSelf:, PlayerShipCancelDockingRequest(), PlayerShipEngageAutopilotToStation(), PlayerShipRequestDockingClearance(), ShipGroupAddShip(), ShipGroupConstruct(), ShipGroupRemoveShip(), ShipGroupSetProperty(), ShipSetProperty(), and SoundFromJSValue().
Here is the call graph for this function:
Here is the caller graph for this function:| JSObject * OOJSObjectFromNativeObject | ( | JSContext * | context, |
| id | object | ||
| ) |
Definition at line 1441 of file OOJavaScriptEngine.m.
References OOJSValueFromNativeObject().
Here is the call graph for this function:| BOOL OOJSObjectGetterImplPRIVATE | ( | JSContext * | context, |
| JSObject * | object, | ||
| JSClass * | requiredJSClass, | ||
| Class | requiredObjCClass, | ||
| const char * | name, | ||
| id * | outObject | ||
| ) |
Definition at line 2179 of file OOJavaScriptEngine.m.
References EXPECT_NOT, nil, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, OOJSGetClass(), OOJSIsSubclass(), OOJSReportError(), and OOStringFromJSValue().
Here is the call graph for this function:| void OOJSObjectWrapperFinalize | ( | JSContext * | context, |
| JSObject * | this | ||
| ) |
Definition at line 2000 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 2016 of file OOJavaScriptEngine.m.
References nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, OOJS_THIS, OOJSGetClass(), and OOJSNativeObjectFromJSObject().
Here is the call graph for this function:| 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(), ReportJSError(), SoundFromJSValue(), SystemFilteredEntities(), and SystemInfoStaticFilteredSystems().
Here is the caller graph for this function:| void OOJSRegisterObjectConverter | ( | JSClass * | theClass, |
| OOJSClassConverterCallback | converter | ||
| ) |
Definition at line 2453 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().
Here is the caller graph for this function:| void OOJSRegisterSubclass | ( | JSClass * | subclass, |
| JSClass * | superclass | ||
| ) |
Definition at line 2140 of file OOJavaScriptEngine.m.
References sRegisteredSubClasses.
Referenced by InitOOJSDock(), InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSPlanet(), InitOOJSPlayerShip(), InitOOJSShip(), InitOOJSStation(), InitOOJSSun(), InitOOJSVisualEffect(), InitOOJSWaypoint(), and InitOOJSWormhole().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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(), 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().
Here is the call graph for this function:| 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(), OoliteSetProperty(), 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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(), OoliteSetProperty(), PlayerSetProperty(), PlayerShipSetProperty(), QuaternionSetProperty(), ShipGroupSetProperty(), ShipSetProperty(), SoundSourceSetProperty(), StationSetProperty(), SystemSetProperty(), TimerSetProperty(), VectorSetProperty(), and VisualEffectSetProperty().
Here is the call graph for this function:
Here is the caller graph for this function:| void OOJSReportError | ( | JSContext * | context, |
| NSString * | format, | ||
| ... | |||
| ) |
Definition at line 1000 of file OOJavaScriptEngine.m.
References OOJSReportErrorWithArguments().
Referenced by ConsoleClearConsole(), ConsoleConsoleMessage(), ConsoleSettingsDeleteProperty(), ConsoleSettingsGetProperty(), ConsoleSettingsSetProperty(), 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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(), OoliteSetProperty(), PlayerShipSetProperty(), ScriptAddProperty(), ShipFireECM(), ShipSetMaterialsInternal(), ShipSetShaders(), SpecialJSWarning(), TimerSetProperty(), VisualEffectSetMaterialsInternal(), and VisualEffectSetShaders().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| void OOJSReportWarningWithArguments | ( | JSContext * | context, |
| NSString * | format, | ||
| va_list | args | ||
| ) |
Definition at line 1103 of file OOJavaScriptEngine.m.
References nil.
Referenced by OOJSReportWarning(), and SyntaxIssue().
Here is the caller graph for this function:| 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(), ReportJSError(), SoundFromJSValue(), SystemFilteredEntities(), and SystemInfoStaticFilteredSystems().
Here is the call graph for this function:
Here is the caller graph for this function:| void OOJSSetWarningOrErrorStackSkip | ( | unsigned | skip | ) |
Definition at line 1156 of file OOJavaScriptEngine.m.
References sErrorHandlerStackSkip.
Referenced by SpecialJSWarning().
Here is the caller graph for this function:| void OOJSStrLiteralCachePRIVATE | ( | const char * | string, |
| jsval * | strCache, | ||
| BOOL * | inited | ||
| ) |
Definition at line 1542 of file OOJavaScriptEngine.m.
References EXPECT_NOT, OOJSAcquireContext(), and OOJSRelinquishContext().
Here is the call graph for this function:| JSBool OOJSUnconstructableConstruct | ( | JSContext * | context, |
| uintN | argc, | ||
| jsval * | vp | ||
| ) |
Definition at line 1986 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().
Here is the call graph for this function:
Here is the caller graph for this function: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().
Here is the caller graph for this function:| OOINLINE jsval OOJSValueFromNativeObject | ( | JSContext * | context, |
| id | object | ||
| ) |
Definition at line 238 of file OOJavaScriptEngine.h.
References nil.
Referenced by ClockGetProperty(), ConsoleGetProperty(), EntityGetProperty(), EquipmentInfoGetAllEqipment(), EquipmentInfoGetProperty(), ExhaustPlumeGetProperty(), FlasherGetProperty(), GetJSSystemInfoForSystem(), ManifestGetProperty(), MissionGetProperty(), MissionRunCallback(), MissionRunScreen(), MissionVariablesGetProperty(), OOJSObjectFromNativeObject(), OoliteGetProperty(), PlanetGetProperty(), PlayerGetProperty(), PlayerShipGetProperty(), RunDeferredOperations(), ShipGetProperty(), ShipGroupGetProperty(), SoundGetProperty(), SoundSourceGetProperty(), StationGetProperty(), SunGetProperty(), SystemGetProperty(), SystemInfoStaticFilteredSystems(), VisualEffectGetProperty(), WaypointGetProperty(), and WormholeGetProperty().
Here is the caller graph for this function:| 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(), JSFunctionPredicate(), MissionRunScreen(), StationSetInterface(), SystemFilteredEntities(), and SystemInfoStaticFilteredSystems().
Here is the caller graph for this function:| NSString * OOStringFromJSID | ( | jsid | propID | ) |
Definition at line 975 of file OOJavaScriptEngine.m.
References nil, OOJSAcquireContext(), OOJSRelinquishContext(), and OOStringFromJSString().
Referenced by MissionVariablesSetProperty().
Here is the call graph for this function:
Here is the caller graph for this function:| NSString * OOStringFromJSPropertyIDAndSpec | ( | JSContext * | context, |
| jsid | propID, | ||
| JSPropertySpec * | propertySpec | ||
| ) |
Definition at line 1610 of file OOJavaScriptEngine.m.
References OOStringFromJSString().
Referenced by OOJSReportBadPropertySelector(), OOJSReportBadPropertyValue(), and ShipSetProperty().
Here is the call graph for this function:
Here is the caller graph for this function:| NSString * OOStringFromJSString | ( | JSContext * | context, |
| JSString * | string | ||
| ) |
Definition at line 1561 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().
Here is the caller graph for this function:| NSString * OOStringFromJSValue | ( | JSContext * | context, |
| jsval | value | ||
| ) |
Definition at line 1596 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(), OoliteSetProperty(), 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().
Here is the call graph for this function:| NSString * OOStringFromJSValueEvenIfNull | ( | JSContext * | context, |
| jsval | value | ||
| ) |
Definition at line 1583 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
extern |
Definition at line 101 of file OOJavaScriptEngine.m.
|
extern |
Definition at line 100 of file OOJavaScriptEngine.m.