From 472c18a99851397939351dd4cfc50220c84dc4c2 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 20 Oct 2023 18:08:15 -0500 Subject: Initial skeleton (hehe) commit Signed-off-by: Matt Strapp --- packages/zorascript/package.json | 15 +++++++++++++++ packages/zorascript/src/enums.ts | 31 +++++++++++++++++++++++++++++++ packages/zorascript/tsconfig.json | 11 +++++++++++ 3 files changed, 57 insertions(+) create mode 100644 packages/zorascript/package.json create mode 100644 packages/zorascript/src/enums.ts create mode 100644 packages/zorascript/tsconfig.json (limited to 'packages') diff --git a/packages/zorascript/package.json b/packages/zorascript/package.json new file mode 100644 index 0000000..109c866 --- /dev/null +++ b/packages/zorascript/package.json @@ -0,0 +1,15 @@ +{ + "name": "zorascript", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "devDependencies": { + + } +} diff --git a/packages/zorascript/src/enums.ts b/packages/zorascript/src/enums.ts new file mode 100644 index 0000000..2d055a6 --- /dev/null +++ b/packages/zorascript/src/enums.ts @@ -0,0 +1,31 @@ +/** + * The region for the game + * + * @remarks + * + * In most cases NA and EU are the same, but there are some small differences mainly involving name encoding. + */ +const enum GameRegion { + Japan = "JP", + NorthAmerica = "NA", + Europe = "EU" +} + +/** + * Specifies the specific Oracle game + */ +const enum Game { + Ages = "Oracle of Ages", + Seasons = "Oracle of Seasons" +} + +const enum Animal { + Ricky = 0x0b, + Dimitri = 0x0c, + Moosh = 0x0d +} + +const enum ChildQuestion { + NoEgg = 0, + YesChicken = 0x2, +} \ No newline at end of file diff --git a/packages/zorascript/tsconfig.json b/packages/zorascript/tsconfig.json new file mode 100644 index 0000000..1b2dbb2 --- /dev/null +++ b/packages/zorascript/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es2015", + "declaration": true, + "outDir": "./dist" + }, + "include": [ + "src/**/*" + ] +} \ No newline at end of file -- cgit v1.2.3