diff --git a/server/components/Entity.js b/server/components/Entity.js index 28cb31c..72e1009 100644 --- a/server/components/Entity.js +++ b/server/components/Entity.js @@ -5,7 +5,6 @@ class Entity { set Name(v) { this._data.set(this._encoder.encode(v), 0); } - get Strength() { return this._data.getInt32(24, true); } diff --git a/tools/js-class-c-struct-transpiler/transpile.js b/tools/js-class-c-struct-transpiler/transpile.js index e115d4b..c51b612 100644 --- a/tools/js-class-c-struct-transpiler/transpile.js +++ b/tools/js-class-c-struct-transpiler/transpile.js @@ -115,8 +115,7 @@ for (const type of Object.keys(schema)) { } set ${prop}(v) { this._data.set(this._encoder.encode(v), ${parseInt(offset)}); - } - `; + }`; cData += ` char ${prop}[${iSize}];`;