Oolite 1.91.0.7646-241128-10e222e
|
Go to the source code of this file.
Functions | |
void | InitOOJSVector (JSContext *context, JSObject *global) |
JSObject * | JSVectorWithVector (JSContext *context, Vector vector) NONNULL_FUNC |
JSObject * | JSVectorWithHPVector (JSContext *context, HPVector vector) NONNULL_FUNC |
BOOL | VectorToJSValue (JSContext *context, Vector vector, jsval *outValue) NONNULL_FUNC |
BOOL | HPVectorToJSValue (JSContext *context, HPVector vector, jsval *outValue) NONNULL_FUNC |
BOOL | NSPointToVectorJSValue (JSContext *context, NSPoint point, jsval *outValue) NONNULL_FUNC |
BOOL | JSValueToVector (JSContext *context, jsval value, Vector *outVector) NONNULL_FUNC |
BOOL | JSValueToHPVector (JSContext *context, jsval value, HPVector *outVector) NONNULL_FUNC |
BOOL | JSObjectGetVector (JSContext *context, JSObject *vectorObj, HPVector *outVector) GCC_ATTR((nonnull(1 |
BOOL BOOL | JSVectorSetVector (JSContext *context, JSObject *vectorObj, Vector vector) GCC_ATTR((nonnull(1))) |
BOOL | JSVectorSetHPVector (JSContext *context, JSObject *vectorObj, HPVector vector) GCC_ATTR((nonnull(1))) |
BOOL | VectorFromArgumentList (JSContext *context, NSString *scriptClass, NSString *function, uintN argc, jsval *argv, HPVector *outVector, uintN *outConsumed) GCC_ATTR((nonnull(1 |
BOOL BOOL | VectorFromArgumentListNoError (JSContext *context, uintN argc, jsval *argv, HPVector *outVector, uintN *outConsumed) GCC_ATTR((nonnull(1 |
BOOL HPVectorToJSValue | ( | JSContext * | context, |
HPVector | vector, | ||
jsval * | outValue ) |
Definition at line 228 of file OOJSVector.m.
References EXPECT_NOT, JSVectorWithHPVector(), OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by EntityGetProperty(), and ShipGetProperty().
void InitOOJSVector | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 153 of file OOJSVector.m.
References sVectorClass, sVectorMethods, sVectorProperties, sVectorPrototype, sVectorStaticMethods, and VectorConstruct().
BOOL JSObjectGetVector | ( | JSContext * | context, |
JSObject * | vectorObj, | ||
HPVector * | outVector ) |
Referenced by GetThisVector(), VectorFromArgumentListNoErrorInternal(), VectorGetProperty(), and VectorSetProperty().
BOOL JSValueToHPVector | ( | JSContext * | context, |
jsval | value, | ||
HPVector * | outVector ) |
Definition at line 252 of file OOJSVector.m.
References EXPECT_NOT, and JSObjectGetVector().
Referenced by EntitySetProperty(), ShipSetProperty(), and SystemSetWaypoint().
BOOL JSValueToVector | ( | JSContext * | context, |
jsval | value, | ||
Vector * | outVector ) |
Definition at line 259 of file OOJSVector.m.
References EXPECT_NOT, JSObjectGetVector(), and kZeroHPVector.
Referenced by ExhaustPlumeSetProperty(), OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, MissionRunScreen(), PlayerShipSetCustomView(), PlayerShipSetProperty(), ShipSetProperty(), SoundSourceSetProperty(), SystemSetPopulator(), and VisualEffectSetProperty().
BOOL JSVectorSetHPVector | ( | JSContext * | context, |
JSObject * | vectorObj, | ||
HPVector | vector ) |
Definition at line 426 of file OOJSVector.m.
References EXPECT_NOT, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and sVectorClass.
Referenced by JSVectorSetVector(), and VectorSetProperty().
BOOL BOOL JSVectorSetVector | ( | JSContext * | context, |
JSObject * | vectorObj, | ||
Vector | vector ) |
Definition at line 420 of file OOJSVector.m.
References JSVectorSetHPVector().
JSObject * JSVectorWithHPVector | ( | JSContext * | context, |
HPVector | vector ) |
Definition at line 202 of file OOJSVector.m.
References EXPECT_NOT, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, sVectorClass, and sVectorPrototype.
Referenced by HPVectorToJSValue().
JSObject * JSVectorWithVector | ( | JSContext * | context, |
Vector | vector ) |
Definition at line 159 of file OOJSVector.m.
References EXPECT_NOT, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, sVectorClass, and sVectorPrototype.
Referenced by OOJSCallObjCObjectMethod(), and VectorToJSValue().
BOOL NSPointToVectorJSValue | ( | JSContext * | context, |
NSPoint | point, | ||
jsval * | outValue ) |
Definition at line 246 of file OOJSVector.m.
References VectorToJSValue().
Referenced by PlayerShipGetProperty(), and SystemInfoGetProperty().
BOOL VectorFromArgumentList | ( | JSContext * | context, |
NSString * | scriptClass, | ||
NSString * | function, | ||
uintN | argc, | ||
jsval * | argv, | ||
HPVector * | outVector, | ||
uintN * | outConsumed ) |
Referenced by QuaternionRotate(), VectorAdd(), VectorAngleTo(), VectorCross(), VectorDistanceTo(), VectorDot(), VectorRotationTo(), VectorSquaredDistanceTo(), VectorStaticInterpolate(), VectorSubtract(), and VectorTripleProduct().
BOOL BOOL VectorFromArgumentListNoError | ( | JSContext * | context, |
uintN | argc, | ||
jsval * | argv, | ||
HPVector * | outVector, | ||
uintN * | outConsumed ) |
Referenced by SystemAddShipsOrGroup(), SystemAddVisualEffect(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), and SystemLegacyAddShipsWithinRadius().
BOOL VectorToJSValue | ( | JSContext * | context, |
Vector | vector, | ||
jsval * | outValue ) |
Definition at line 185 of file OOJSVector.m.
References EXPECT_NOT, JSVectorWithVector(), OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by EntityGetProperty(), ExhaustPlumeGetProperty(), NSPointToVectorJSValue(), PlanetGetProperty(), PlayerShipGetProperty(), ShipGetProperty(), SoundSourceGetProperty(), SystemInfoGetProperty(), and VisualEffectGetProperty().