Oolite 1.91.0.7644-241112-7f5034b
|
import "OOJSOolite.h"
import "OOJavaScriptEngine.h"
import "OOStringParsing.h"
import "OOJSPlayer.h"
import "ResourceManager.h"
Go to the source code of this file.
Enumerations | |
enum | { kOolite_version , kOolite_versionString , kOolite_jsVersion , kOolite_jsVersionString , kOolite_gameSettings , kOolite_resourcePaths } |
Functions | |
static JSBool | OoliteGetProperty (JSContext *context, JSObject *this, jsid propID, jsval *value) |
static NSString * | VersionString (void) |
static NSArray * | VersionComponents (void) |
static JSBool | OoliteCompareVersion (JSContext *context, uintN argc, jsval *vp) |
void | InitOOJSOolite (JSContext *context, JSObject *global) |
Variables | |
static JSClass | sOoliteClass |
static JSPropertySpec | sOoliteProperties [] |
static JSFunctionSpec | sOoliteMethods [] |
anonymous enum |
Enumerator | |
---|---|
kOolite_version | |
kOolite_versionString | |
kOolite_jsVersion | |
kOolite_jsVersionString | |
kOolite_gameSettings | |
kOolite_resourcePaths |
Definition at line 59 of file OOJSOolite.m.
void InitOOJSOolite | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 92 of file OOJSOolite.m.
References OOJS_PROP_READONLY, OOJSUnconstructableConstruct(), sOoliteClass, sOoliteMethods, and sOoliteProperties.
|
static |
Definition at line 164 of file OOJSOolite.m.
References CompareVersions(), ComponentsFromVersionString(), nil, OOJS_ARGV, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJS_RETURN_INT, OOJS_RETURN_VOID, OOJSNativeObjectFromJSValue(), and VersionComponents().
|
static |
Definition at line 99 of file OOJSOolite.m.
References kOolite_gameSettings, kOolite_jsVersion, kOolite_jsVersionString, kOolite_resourcePaths, kOolite_version, kOolite_versionString, nil, OOJS_NATIVE_ENTER, OOJS_NATIVE_EXIT, OOJSReportBadPropertySelector(), OOJSValueFromNativeObject(), ResourceManager::paths, sOoliteProperties, VersionComponents(), and VersionString().
|
static |
Definition at line 151 of file OOJSOolite.m.
References ComponentsFromVersionString(), and VersionString().
Referenced by OoliteCompareVersion(), and OoliteGetProperty().
|
static |
Definition at line 145 of file OOJSOolite.m.
Referenced by OoliteGetProperty(), and VersionComponents().
|
static |
Definition at line 43 of file OOJSOolite.m.
Referenced by InitOOJSOolite().
|
static |
Definition at line 84 of file OOJSOolite.m.
Referenced by InitOOJSOolite().
|
static |
Definition at line 71 of file OOJSOolite.m.
Referenced by InitOOJSOolite(), and OoliteGetProperty().