UNPKG

neos-script

Version:

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

23 lines (22 loc) 7.28 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.CommonSpawnArea = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function CommonSpawnArea(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, SpawnPointGenerator = props.SpawnPointGenerator, FloorPointRay = props.FloorPointRay, OtherUserCheckRadius = props.OtherUserCheckRadius, ParentUser = props.ParentUser, OrientUser = props.OrientUser, ScaleUser = props.ScaleUser, Capacity = props.Capacity, BaseWeight = props.BaseWeight, PositionNode = props.PositionNode, RotationNode = props.RotationNode; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.CommonSpawnArea", 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.IPointGenerator]", name: "SpawnPointGenerator", id: typeof SpawnPointGenerator === "object" && "id" in SpawnPointGenerator ? SpawnPointGenerator === null || SpawnPointGenerator === void 0 ? void 0 : SpawnPointGenerator.id : undefined, value: typeof SpawnPointGenerator === "object" && "value" in SpawnPointGenerator ? SpawnPointGenerator === null || SpawnPointGenerator === void 0 ? void 0 : SpawnPointGenerator.value : SpawnPointGenerator, isRaw: typeof SpawnPointGenerator === "object" && "isRaw" in SpawnPointGenerator && SpawnPointGenerator.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "FloorPointRay", id: typeof FloorPointRay === "object" && "id" in FloorPointRay ? FloorPointRay === null || FloorPointRay === void 0 ? void 0 : FloorPointRay.id : undefined, value: typeof FloorPointRay === "object" && "value" in FloorPointRay ? FloorPointRay === null || FloorPointRay === void 0 ? void 0 : FloorPointRay.value : FloorPointRay, isRaw: typeof FloorPointRay === "object" && "isRaw" in FloorPointRay && FloorPointRay.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "OtherUserCheckRadius", id: typeof OtherUserCheckRadius === "object" && "id" in OtherUserCheckRadius ? OtherUserCheckRadius === null || OtherUserCheckRadius === void 0 ? void 0 : OtherUserCheckRadius.id : undefined, value: typeof OtherUserCheckRadius === "object" && "value" in OtherUserCheckRadius ? OtherUserCheckRadius === null || OtherUserCheckRadius === void 0 ? void 0 : OtherUserCheckRadius.value : OtherUserCheckRadius, isRaw: typeof OtherUserCheckRadius === "object" && "isRaw" in OtherUserCheckRadius && OtherUserCheckRadius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ParentUser", id: typeof ParentUser === "object" && "id" in ParentUser ? ParentUser === null || ParentUser === void 0 ? void 0 : ParentUser.id : undefined, value: typeof ParentUser === "object" && "value" in ParentUser ? ParentUser === null || ParentUser === void 0 ? void 0 : ParentUser.value : ParentUser, isRaw: typeof ParentUser === "object" && "isRaw" in ParentUser && ParentUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "OrientUser", id: typeof OrientUser === "object" && "id" in OrientUser ? OrientUser === null || OrientUser === void 0 ? void 0 : OrientUser.id : undefined, value: typeof OrientUser === "object" && "value" in OrientUser ? OrientUser === null || OrientUser === void 0 ? void 0 : OrientUser.value : OrientUser, isRaw: typeof OrientUser === "object" && "isRaw" in OrientUser && OrientUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ScaleUser", id: typeof ScaleUser === "object" && "id" in ScaleUser ? ScaleUser === null || ScaleUser === void 0 ? void 0 : ScaleUser.id : undefined, value: typeof ScaleUser === "object" && "value" in ScaleUser ? ScaleUser === null || ScaleUser === void 0 ? void 0 : ScaleUser.value : ScaleUser, isRaw: typeof ScaleUser === "object" && "isRaw" in ScaleUser && ScaleUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "Capacity", id: typeof Capacity === "object" && "id" in Capacity ? Capacity === null || Capacity === void 0 ? void 0 : Capacity.id : undefined, value: typeof Capacity === "object" && "value" in Capacity ? Capacity === null || Capacity === void 0 ? void 0 : Capacity.value : Capacity, isRaw: typeof Capacity === "object" && "isRaw" in Capacity && Capacity.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "BaseWeight", id: typeof BaseWeight === "object" && "id" in BaseWeight ? BaseWeight === null || BaseWeight === void 0 ? void 0 : BaseWeight.id : undefined, value: typeof BaseWeight === "object" && "value" in BaseWeight ? BaseWeight === null || BaseWeight === void 0 ? void 0 : BaseWeight.value : BaseWeight, isRaw: typeof BaseWeight === "object" && "isRaw" in BaseWeight && BaseWeight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.UserRoot+UserNode]", name: "PositionNode", id: typeof PositionNode === "object" && "id" in PositionNode ? PositionNode === null || PositionNode === void 0 ? void 0 : PositionNode.id : undefined, value: typeof PositionNode === "object" && "value" in PositionNode ? PositionNode === null || PositionNode === void 0 ? void 0 : PositionNode.value : PositionNode, isRaw: typeof PositionNode === "object" && "isRaw" in PositionNode && PositionNode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.UserRoot+UserNode]", name: "RotationNode", id: typeof RotationNode === "object" && "id" in RotationNode ? RotationNode === null || RotationNode === void 0 ? void 0 : RotationNode.id : undefined, value: typeof RotationNode === "object" && "value" in RotationNode ? RotationNode === null || RotationNode === void 0 ? void 0 : RotationNode.value : RotationNode, isRaw: typeof RotationNode === "object" && "isRaw" in RotationNode && RotationNode.isRaw ? true : undefined })] }))); } exports.CommonSpawnArea = CommonSpawnArea; ;