UNPKG

neos-script

Version:

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

23 lines (22 loc) 8.07 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.ScreenController = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function ScreenController(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TransitionSpeed = props.TransitionSpeed, PointerController = props.PointerController, ActiveTargetting = props.ActiveTargetting, Head = props.Head, LeftHand = props.LeftHand, RightHand = props.RightHand, _previousTargetting = props._previousTargetting, _firstPerson = props._firstPerson, _thirdPerson = props._thirdPerson, _uiCamera = props._uiCamera, _freeformCamera = props._freeformCamera; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ScreenController", 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.Sync`1[System.Single]", name: "TransitionSpeed", id: typeof TransitionSpeed === "object" && "id" in TransitionSpeed ? TransitionSpeed === null || TransitionSpeed === void 0 ? void 0 : TransitionSpeed.id : undefined, value: typeof TransitionSpeed === "object" && "value" in TransitionSpeed ? TransitionSpeed === null || TransitionSpeed === void 0 ? void 0 : TransitionSpeed.value : TransitionSpeed, isRaw: typeof TransitionSpeed === "object" && "isRaw" in TransitionSpeed && TransitionSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.PointerInteractionController]", name: "PointerController", id: typeof PointerController === "object" && "id" in PointerController ? PointerController === null || PointerController === void 0 ? void 0 : PointerController.id : undefined, value: typeof PointerController === "object" && "value" in PointerController ? PointerController === null || PointerController === void 0 ? void 0 : PointerController.value : PointerController, isRaw: typeof PointerController === "object" && "isRaw" in PointerController && PointerController.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.IViewTargettingController]", name: "ActiveTargetting", id: typeof ActiveTargetting === "object" && "id" in ActiveTargetting ? ActiveTargetting === null || ActiveTargetting === void 0 ? void 0 : ActiveTargetting.id : undefined, value: typeof ActiveTargetting === "object" && "value" in ActiveTargetting ? ActiveTargetting === null || ActiveTargetting === void 0 ? void 0 : ActiveTargetting.value : ActiveTargetting, isRaw: typeof ActiveTargetting === "object" && "isRaw" in ActiveTargetting && ActiveTargetting.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.HeadSimulator]", name: "Head", id: typeof Head === "object" && "id" in Head ? Head === null || Head === void 0 ? void 0 : Head.id : undefined, value: typeof Head === "object" && "value" in Head ? Head === null || Head === void 0 ? void 0 : Head.value : Head, isRaw: typeof Head === "object" && "isRaw" in Head && Head.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.HandSimulator]", name: "LeftHand", id: typeof LeftHand === "object" && "id" in LeftHand ? LeftHand === null || LeftHand === void 0 ? void 0 : LeftHand.id : undefined, value: typeof LeftHand === "object" && "value" in LeftHand ? LeftHand === null || LeftHand === void 0 ? void 0 : LeftHand.value : LeftHand, isRaw: typeof LeftHand === "object" && "isRaw" in LeftHand && LeftHand.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.HandSimulator]", name: "RightHand", id: typeof RightHand === "object" && "id" in RightHand ? RightHand === null || RightHand === void 0 ? void 0 : RightHand.id : undefined, value: typeof RightHand === "object" && "value" in RightHand ? RightHand === null || RightHand === void 0 ? void 0 : RightHand.value : RightHand, isRaw: typeof RightHand === "object" && "isRaw" in RightHand && RightHand.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.IViewTargettingController]", name: "_previousTargetting", id: typeof _previousTargetting === "object" && "id" in _previousTargetting ? _previousTargetting === null || _previousTargetting === void 0 ? void 0 : _previousTargetting.id : undefined, value: typeof _previousTargetting === "object" && "value" in _previousTargetting ? _previousTargetting === null || _previousTargetting === void 0 ? void 0 : _previousTargetting.value : _previousTargetting, isRaw: typeof _previousTargetting === "object" && "isRaw" in _previousTargetting && _previousTargetting.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.FirstPersonTargettingController]", name: "_firstPerson", id: typeof _firstPerson === "object" && "id" in _firstPerson ? _firstPerson === null || _firstPerson === void 0 ? void 0 : _firstPerson.id : undefined, value: typeof _firstPerson === "object" && "value" in _firstPerson ? _firstPerson === null || _firstPerson === void 0 ? void 0 : _firstPerson.value : _firstPerson, isRaw: typeof _firstPerson === "object" && "isRaw" in _firstPerson && _firstPerson.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ThirdPersonTargettingController]", name: "_thirdPerson", id: typeof _thirdPerson === "object" && "id" in _thirdPerson ? _thirdPerson === null || _thirdPerson === void 0 ? void 0 : _thirdPerson.id : undefined, value: typeof _thirdPerson === "object" && "value" in _thirdPerson ? _thirdPerson === null || _thirdPerson === void 0 ? void 0 : _thirdPerson.value : _thirdPerson, isRaw: typeof _thirdPerson === "object" && "isRaw" in _thirdPerson && _thirdPerson.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UI_TargettingController]", name: "_uiCamera", id: typeof _uiCamera === "object" && "id" in _uiCamera ? _uiCamera === null || _uiCamera === void 0 ? void 0 : _uiCamera.id : undefined, value: typeof _uiCamera === "object" && "value" in _uiCamera ? _uiCamera === null || _uiCamera === void 0 ? void 0 : _uiCamera.value : _uiCamera, isRaw: typeof _uiCamera === "object" && "isRaw" in _uiCamera && _uiCamera.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.FreeformTargettingController]", name: "_freeformCamera", id: typeof _freeformCamera === "object" && "id" in _freeformCamera ? _freeformCamera === null || _freeformCamera === void 0 ? void 0 : _freeformCamera.id : undefined, value: typeof _freeformCamera === "object" && "value" in _freeformCamera ? _freeformCamera === null || _freeformCamera === void 0 ? void 0 : _freeformCamera.value : _freeformCamera, isRaw: typeof _freeformCamera === "object" && "isRaw" in _freeformCamera && _freeformCamera.isRaw ? true : undefined })] }))); } exports.ScreenController = ScreenController; ;