@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
29 lines (27 loc) • 754 B
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.AnnotatedValueSet = void 0;
class AnnotatedValueSet {
static includes(values, search) {
for (const val of values) {
if (val.value === search) {
return true;
}
}
return false;
}
static getValues(values) {
if (values === undefined) {
return undefined;
}
const vals = [];
for (const val of values) {
vals.push(val.value);
}
return vals;
}
}
exports.AnnotatedValueSet = AnnotatedValueSet;
//# sourceMappingURL=../maps/core/AnnotatedValue.js.map