UNPKG

multyx

Version:

Framework designed to simplify the creation of multiplayer browser games by addressing the complexities of managing server-client communication, shared state, and input handling

28 lines (25 loc) 807 B
"use strict"; /* Symbols used as class method identifiers to indicate privacy and disallow use outside of Multyx ecosystem */ Object.defineProperty(exports, "__esModule", { value: true }); exports.EditWrapper = exports.Remove = exports.Build = exports.Self = exports.Send = exports.Edit = exports.Value = exports.Get = exports.Parse = void 0; exports.Parse = Symbol("parse"); exports.Get = Symbol("get"); exports.Value = Symbol("value"); exports.Edit = Symbol("edit"); exports.Send = Symbol("send"); exports.Self = Symbol("self"); exports.Build = Symbol("build"); exports.Remove = Symbol("remove"); class EditWrapper { /** * Used when client is editing value * @param value Value to set */ constructor(value) { this.value = value; } } exports.EditWrapper = EditWrapper;