@gamepark/rules-api
Version:
API to implement the rules of a board game
12 lines • 483 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isWithPlayerIdOptions = void 0;
function isWithPlayerIdOptions(optionsSpec) {
var playersOptions = optionsSpec === null || optionsSpec === void 0 ? void 0 : optionsSpec.players;
if (!playersOptions)
return false;
var idOptions = playersOptions.id;
return !!idOptions;
}
exports.isWithPlayerIdOptions = isWithPlayerIdOptions;
//# sourceMappingURL=isWithPlayerIdOptions.js.map