UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

41 lines (40 loc) 2.01 kB
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.DebugConnectionState = exports.ProtocolVersion = void 0; // ============================================================================ // Protocol Version Constants // ============================================================================ /** * Protocol version history: * 1 - Initial version * 2 - Add targetModuleUuid to protocol event * 3 - Add array of plugins and target module IDs * 4 - Minecraft can require passcode * 5 - Debugger can take profiler captures * 6 - Breakpoints as request (MC can reject) */ var ProtocolVersion; (function (ProtocolVersion) { ProtocolVersion[ProtocolVersion["Unknown"] = 0] = "Unknown"; ProtocolVersion[ProtocolVersion["Initial"] = 1] = "Initial"; ProtocolVersion[ProtocolVersion["SupportTargetModuleUuid"] = 2] = "SupportTargetModuleUuid"; ProtocolVersion[ProtocolVersion["SupportTargetSelection"] = 3] = "SupportTargetSelection"; ProtocolVersion[ProtocolVersion["SupportPasscode"] = 4] = "SupportPasscode"; ProtocolVersion[ProtocolVersion["SupportProfilerCaptures"] = 5] = "SupportProfilerCaptures"; ProtocolVersion[ProtocolVersion["SupportBreakpointsAsRequest"] = 6] = "SupportBreakpointsAsRequest"; })(ProtocolVersion || (exports.ProtocolVersion = ProtocolVersion = {})); // ============================================================================ // Client State Types // ============================================================================ /** * Current state of the debug connection. */ var DebugConnectionState; (function (DebugConnectionState) { DebugConnectionState["Disconnected"] = "disconnected"; DebugConnectionState["Connecting"] = "connecting"; DebugConnectionState["Connected"] = "connected"; DebugConnectionState["Error"] = "error"; })(DebugConnectionState || (exports.DebugConnectionState = DebugConnectionState = {}));