UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 4.36 kB
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ScreenModeController = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function ScreenModeController(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _dash = props._dash, _muteSound = props._muteSound, _unmuteSound = props._unmuteSound, _startTalkSound = props._startTalkSound, _stopTalkSound = props._stopTalkSound; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ScreenModeController", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UserspaceRadiantDash]", name: "_dash", id: typeof _dash === "object" && "id" in _dash ? _dash === null || _dash === void 0 ? void 0 : _dash.id : undefined, value: typeof _dash === "object" && "value" in _dash ? _dash === null || _dash === void 0 ? void 0 : _dash.value : _dash, isRaw: typeof _dash === "object" && "isRaw" in _dash && _dash.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.AudioClip]", name: "_muteSound", id: typeof _muteSound === "object" && "id" in _muteSound ? _muteSound === null || _muteSound === void 0 ? void 0 : _muteSound.id : undefined, value: typeof _muteSound === "object" && "value" in _muteSound ? _muteSound === null || _muteSound === void 0 ? void 0 : _muteSound.value : _muteSound, isRaw: typeof _muteSound === "object" && "isRaw" in _muteSound && _muteSound.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.AudioClip]", name: "_unmuteSound", id: typeof _unmuteSound === "object" && "id" in _unmuteSound ? _unmuteSound === null || _unmuteSound === void 0 ? void 0 : _unmuteSound.id : undefined, value: typeof _unmuteSound === "object" && "value" in _unmuteSound ? _unmuteSound === null || _unmuteSound === void 0 ? void 0 : _unmuteSound.value : _unmuteSound, isRaw: typeof _unmuteSound === "object" && "isRaw" in _unmuteSound && _unmuteSound.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.AudioClip]", name: "_startTalkSound", id: typeof _startTalkSound === "object" && "id" in _startTalkSound ? _startTalkSound === null || _startTalkSound === void 0 ? void 0 : _startTalkSound.id : undefined, value: typeof _startTalkSound === "object" && "value" in _startTalkSound ? _startTalkSound === null || _startTalkSound === void 0 ? void 0 : _startTalkSound.value : _startTalkSound, isRaw: typeof _startTalkSound === "object" && "isRaw" in _startTalkSound && _startTalkSound.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.AudioClip]", name: "_stopTalkSound", id: typeof _stopTalkSound === "object" && "id" in _stopTalkSound ? _stopTalkSound === null || _stopTalkSound === void 0 ? void 0 : _stopTalkSound.id : undefined, value: typeof _stopTalkSound === "object" && "value" in _stopTalkSound ? _stopTalkSound === null || _stopTalkSound === void 0 ? void 0 : _stopTalkSound.value : _stopTalkSound, isRaw: typeof _stopTalkSound === "object" && "isRaw" in _stopTalkSound && _stopTalkSound.isRaw ? true : undefined })] }))); } exports.ScreenModeController = ScreenModeController; ;