UNPKG

neos-script

Version:

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

23 lines (22 loc) 6.43 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.CharacterTeleporter = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function CharacterTeleporter(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TriggersOnly = props.TriggersOnly, Exits = props.Exits, MinimumVelocity = props.MinimumVelocity, DirectionReference = props.DirectionReference, MaxDirectionAngle = props.MaxDirectionAngle, IgnoreParentUser = props.IgnoreParentUser, TeleportEntered = props.TeleportEntered, TeleportExited = props.TeleportExited; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.CharacterTeleporter", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { 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.Boolean]", name: "TriggersOnly", id: typeof TriggersOnly === "object" && "id" in TriggersOnly ? TriggersOnly === null || TriggersOnly === void 0 ? void 0 : TriggersOnly.id : undefined, value: typeof TriggersOnly === "object" && "value" in TriggersOnly ? TriggersOnly === null || TriggersOnly === void 0 ? void 0 : TriggersOnly.value : TriggersOnly, isRaw: typeof TriggersOnly === "object" && "isRaw" in TriggersOnly && TriggersOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.CharacterTeleporter+Exit]", name: "Exits", id: typeof Exits === "object" && "id" in Exits ? Exits === null || Exits === void 0 ? void 0 : Exits.id : undefined, value: typeof Exits === "object" && "value" in Exits ? Exits === null || Exits === void 0 ? void 0 : Exits.value : Exits, isRaw: typeof Exits === "object" && "isRaw" in Exits && Exits.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinimumVelocity", id: typeof MinimumVelocity === "object" && "id" in MinimumVelocity ? MinimumVelocity === null || MinimumVelocity === void 0 ? void 0 : MinimumVelocity.id : undefined, value: typeof MinimumVelocity === "object" && "value" in MinimumVelocity ? MinimumVelocity === null || MinimumVelocity === void 0 ? void 0 : MinimumVelocity.value : MinimumVelocity, isRaw: typeof MinimumVelocity === "object" && "isRaw" in MinimumVelocity && MinimumVelocity.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "DirectionReference", id: typeof DirectionReference === "object" && "id" in DirectionReference ? DirectionReference === null || DirectionReference === void 0 ? void 0 : DirectionReference.id : undefined, value: typeof DirectionReference === "object" && "value" in DirectionReference ? DirectionReference === null || DirectionReference === void 0 ? void 0 : DirectionReference.value : DirectionReference, isRaw: typeof DirectionReference === "object" && "isRaw" in DirectionReference && DirectionReference.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxDirectionAngle", id: typeof MaxDirectionAngle === "object" && "id" in MaxDirectionAngle ? MaxDirectionAngle === null || MaxDirectionAngle === void 0 ? void 0 : MaxDirectionAngle.id : undefined, value: typeof MaxDirectionAngle === "object" && "value" in MaxDirectionAngle ? MaxDirectionAngle === null || MaxDirectionAngle === void 0 ? void 0 : MaxDirectionAngle.value : MaxDirectionAngle, isRaw: typeof MaxDirectionAngle === "object" && "isRaw" in MaxDirectionAngle && MaxDirectionAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IgnoreParentUser", id: typeof IgnoreParentUser === "object" && "id" in IgnoreParentUser ? IgnoreParentUser === null || IgnoreParentUser === void 0 ? void 0 : IgnoreParentUser.id : undefined, value: typeof IgnoreParentUser === "object" && "value" in IgnoreParentUser ? IgnoreParentUser === null || IgnoreParentUser === void 0 ? void 0 : IgnoreParentUser.value : IgnoreParentUser, isRaw: typeof IgnoreParentUser === "object" && "isRaw" in IgnoreParentUser && IgnoreParentUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegateList`1[System.Action`1[BaseX.float3]]", name: "TeleportEntered", id: typeof TeleportEntered === "object" && "id" in TeleportEntered ? TeleportEntered === null || TeleportEntered === void 0 ? void 0 : TeleportEntered.id : undefined, value: typeof TeleportEntered === "object" && "value" in TeleportEntered ? TeleportEntered === null || TeleportEntered === void 0 ? void 0 : TeleportEntered.value : TeleportEntered, isRaw: typeof TeleportEntered === "object" && "isRaw" in TeleportEntered && TeleportEntered.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegateList`1[System.Action`1[BaseX.float3]]", name: "TeleportExited", id: typeof TeleportExited === "object" && "id" in TeleportExited ? TeleportExited === null || TeleportExited === void 0 ? void 0 : TeleportExited.id : undefined, value: typeof TeleportExited === "object" && "value" in TeleportExited ? TeleportExited === null || TeleportExited === void 0 ? void 0 : TeleportExited.value : TeleportExited, isRaw: typeof TeleportExited === "object" && "isRaw" in TeleportExited && TeleportExited.isRaw ? true : undefined })] }))); } exports.CharacterTeleporter = CharacterTeleporter; ;