UNPKG

mudb

Version:

Real-time database for multiplayer games

26 lines 650 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class MuString { constructor(identity, type) { this.identity = identity; this.muType = type; this.json = { type, identity, }; } alloc() { return this.identity; } free(str) { } equal(a, b) { return a === b; } clone(str) { return str; } assign(dst, src) { return src; } toJSON(str) { return str; } fromJSON(x) { if (typeof x === 'string') { return x; } return this.identity; } } exports.MuString = MuString; //# sourceMappingURL=_string.js.map