Oolite 1.91.0.7644-241112-7f5034b
|
import "OOJSClock.h"
import "OOJavaScriptEngine.h"
import "Universe.h"
import "OOJSPlayer.h"
import "PlayerEntity.h"
import "PlayerEntityScriptMethods.h"
import "OOStringParsing.h"
import "OODebugStandards.h"
Go to the source code of this file.
Functions | |
static JSBool | ClockGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static JSBool | JSClockToString (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ClockClockStringForTime (JSContext *context, uintN argc, jsval *vp) |
static JSBool | ClockAddSeconds (JSContext *context, uintN argc, jsval *vp) |
void | InitOOJSClock (JSContext *context, JSObject *global) |
Variables | |
static JSClass | sClockClass |
static JSPropertySpec | sClockProperties [] |
static JSFunctionSpec | sClockMethods [] |
anonymous enum |
Definition at line 60 of file OOJSClock.m.
|
static |
Definition at line 218 of file OOJSClock.m.
References EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_BOOL, and OOJSReportBadArguments().
|
static |
Definition at line 197 of file OOJSClock.m.
References ClockToString(), EXPECT_NOT, nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, and OOJSReportBadArguments().
|
static |
Definition at line 116 of file OOJSClock.m.
References PlayerEntity::clockTime, kClock_absoluteSeconds, kClock_adjustedSeconds, kClock_clockString, kClock_days, kClock_daysComponent, kClock_hours, kClock_hoursComponent, kClock_isAdjusting, kClock_legacy_scriptTimer, kClock_minutes, kClock_minutesComponent, kClock_seconds, kClock_secondsComponent, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromBOOL(), OOJSValueFromNativeObject(), OOPlayerForScripting(), OOStandardsDeprecated(), sClockProperties, and UNIVERSE.
void InitOOJSClock | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 109 of file OOJSClock.m.
References OOJS_PROP_READONLY, OOJSUnconstructableConstruct(), sClockClass, sClockMethods, and sClockProperties.
|
static |
Definition at line 186 of file OOJSClock.m.
References OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_OBJECT, and OOPlayerForScripting().
|
static |
Definition at line 43 of file OOJSClock.m.
Referenced by InitOOJSClock().
|
static |
Definition at line 99 of file OOJSClock.m.
Referenced by InitOOJSClock().
|
static |
Definition at line 79 of file OOJSClock.m.
Referenced by ClockGetProperty(), and InitOOJSClock().