diff --git a/client/build.sh b/client/build.sh index fb470c1..f377f4b 100755 --- a/client/build.sh +++ b/client/build.sh @@ -1 +1 @@ -PLATFORM=PLATFORM_WEB make -B && mv project_verne.* build/ \ No newline at end of file +PLATFORM=PLATFORM_WEB make -B && rm -rf build/* && mv project_verne.* build/ \ No newline at end of file diff --git a/client/types.h b/client/types.h index 934b418..aeecd7d 100644 --- a/client/types.h +++ b/client/types.h @@ -17,7 +17,7 @@ typedef struct Entity { unsigned char Prestidigitation; unsigned char Language; unsigned char Medicine; - unsigned char Thaumitology; + unsigned char Thaumatology; unsigned char Theology; unsigned char Fishing; unsigned char Mining; diff --git a/server/components/Entity.js b/server/components/Entity.js index 60ca8db..ef4efb4 100644 --- a/server/components/Entity.js +++ b/server/components/Entity.js @@ -107,10 +107,10 @@ class Entity { set Medicine(v) { return this._data.setUint8(40, v, true); } - get Thaumitology() { + get Thaumatology() { return this._data.getUint8(41, true); } - set Thaumitology(v) { + set Thaumatology(v) { return this._data.setUint8(41, v, true); } get Theology() { diff --git a/server/schema.json b/server/schema.json index bba9c35..b9bd039 100644 --- a/server/schema.json +++ b/server/schema.json @@ -73,7 +73,7 @@ "type": "u8", "kind": "scalar" }, - "Thaumitology": { + "Thaumatology": { "type": "u8", "kind": "scalar" }, diff --git a/server/sql/generate_db.sh b/server/sql/generate_db.sh new file mode 100644 index 0000000..2f71ca8 --- /dev/null +++ b/server/sql/generate_db.sh @@ -0,0 +1 @@ +sqlite3 world.db < types.sql \ No newline at end of file diff --git a/server/sql/types.sql b/server/sql/types.sql index 2354704..8ac415b 100644 --- a/server/sql/types.sql +++ b/server/sql/types.sql @@ -1,2 +1,2 @@ -CREATE TABLE Entity (entity_id INTEGER PRIMARY KEY AUTOINCREMENT, string TEXT, Strength INTEGER, Endurance INTEGER, Intelligence INTEGER, Wisdom INTEGER, Charisma INTEGER, Faith INTEGER, Artisan INTEGER, Metalworking INTEGER, Alchemy INTEGER, Engineering INTEGER, Culinary INTEGER, Ranged INTEGER, Melee INTEGER, Acrobatics INTEGER, Prestidigitation INTEGER, Language INTEGER, Medicine INTEGER, Thaumitology INTEGER, Theology INTEGER, Fishing INTEGER, Mining INTEGER, Survival INTEGER, Gardening INTEGER, History INTEGER, Perception INTEGER, Luck INTEGER, Stealth INTEGER, Attractiveness INTEGER, Affluence INTEGER, Notoriety INTEGER); +CREATE TABLE Entity (entity_id INTEGER PRIMARY KEY AUTOINCREMENT, string TEXT, Strength INTEGER, Endurance INTEGER, Intelligence INTEGER, Wisdom INTEGER, Charisma INTEGER, Faith INTEGER, Artisan INTEGER, Metalworking INTEGER, Alchemy INTEGER, Engineering INTEGER, Culinary INTEGER, Ranged INTEGER, Melee INTEGER, Acrobatics INTEGER, Prestidigitation INTEGER, Language INTEGER, Medicine INTEGER, Thaumatology INTEGER, Theology INTEGER, Fishing INTEGER, Mining INTEGER, Survival INTEGER, Gardening INTEGER, History INTEGER, Perception INTEGER, Luck INTEGER, Stealth INTEGER, Attractiveness INTEGER, Affluence INTEGER, Notoriety INTEGER); diff --git a/tools/js-class-c-struct-transpiler/test/schema.json b/tools/js-class-c-struct-transpiler/test/schema.json index e392634..c805e9a 100644 --- a/tools/js-class-c-struct-transpiler/test/schema.json +++ b/tools/js-class-c-struct-transpiler/test/schema.json @@ -113,7 +113,7 @@ "type": "i32", "kind": "scalar" }, - "Thaumitology": { + "Thaumatology": { "type": "i32", "kind": "scalar" },