UNPKG

neos-script

Version:

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

23 lines (22 loc) 10.9 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.AvatarManager = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function AvatarManager(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _objectGroups = props._objectGroups, _currentAnchor = props._currentAnchor, AutoAddNameBadge = props.AutoAddNameBadge, AutoAddIconBadge = props.AutoAddIconBadge, AutoAddLiveIndicator = props.AutoAddLiveIndicator, EmptySlotHandler = props.EmptySlotHandler, DefaultScale = props.DefaultScale, NameTagText = props.NameTagText, NameTagColor = props.NameTagColor, NameTagOutline = props.NameTagOutline, NameTagBackground = props.NameTagBackground, _badgeTemplates = props._badgeTemplates, _autoNameBadge = props._autoNameBadge, _autoIconBadge = props._autoIconBadge, _autoLiveIndicator = props._autoLiveIndicator; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.CommonAvatar.AvatarManager", 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.SyncList`1[FrooxEngine.CommonAvatar.AvatarManager+EquippedGroup]", name: "_objectGroups", id: typeof _objectGroups === "object" && "id" in _objectGroups ? _objectGroups === null || _objectGroups === void 0 ? void 0 : _objectGroups.id : undefined, value: typeof _objectGroups === "object" && "value" in _objectGroups ? _objectGroups === null || _objectGroups === void 0 ? void 0 : _objectGroups.value : _objectGroups, isRaw: typeof _objectGroups === "object" && "isRaw" in _objectGroups && _objectGroups.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LinkRef`1[FrooxEngine.CommonAvatar.AvatarAnchor]", name: "_currentAnchor", id: typeof _currentAnchor === "object" && "id" in _currentAnchor ? _currentAnchor === null || _currentAnchor === void 0 ? void 0 : _currentAnchor.id : undefined, value: typeof _currentAnchor === "object" && "value" in _currentAnchor ? _currentAnchor === null || _currentAnchor === void 0 ? void 0 : _currentAnchor.value : _currentAnchor, isRaw: typeof _currentAnchor === "object" && "isRaw" in _currentAnchor && _currentAnchor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AutoAddNameBadge", id: typeof AutoAddNameBadge === "object" && "id" in AutoAddNameBadge ? AutoAddNameBadge === null || AutoAddNameBadge === void 0 ? void 0 : AutoAddNameBadge.id : undefined, value: typeof AutoAddNameBadge === "object" && "value" in AutoAddNameBadge ? AutoAddNameBadge === null || AutoAddNameBadge === void 0 ? void 0 : AutoAddNameBadge.value : AutoAddNameBadge, isRaw: typeof AutoAddNameBadge === "object" && "isRaw" in AutoAddNameBadge && AutoAddNameBadge.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AutoAddIconBadge", id: typeof AutoAddIconBadge === "object" && "id" in AutoAddIconBadge ? AutoAddIconBadge === null || AutoAddIconBadge === void 0 ? void 0 : AutoAddIconBadge.id : undefined, value: typeof AutoAddIconBadge === "object" && "value" in AutoAddIconBadge ? AutoAddIconBadge === null || AutoAddIconBadge === void 0 ? void 0 : AutoAddIconBadge.value : AutoAddIconBadge, isRaw: typeof AutoAddIconBadge === "object" && "isRaw" in AutoAddIconBadge && AutoAddIconBadge.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AutoAddLiveIndicator", id: typeof AutoAddLiveIndicator === "object" && "id" in AutoAddLiveIndicator ? AutoAddLiveIndicator === null || AutoAddLiveIndicator === void 0 ? void 0 : AutoAddLiveIndicator.id : undefined, value: typeof AutoAddLiveIndicator === "object" && "value" in AutoAddLiveIndicator ? AutoAddLiveIndicator === null || AutoAddLiveIndicator === void 0 ? void 0 : AutoAddLiveIndicator.value : AutoAddLiveIndicator, isRaw: typeof AutoAddLiveIndicator === "object" && "isRaw" in AutoAddLiveIndicator && AutoAddLiveIndicator.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.CommonAvatar.IEmptyAvatarSlotHandler]", name: "EmptySlotHandler", id: typeof EmptySlotHandler === "object" && "id" in EmptySlotHandler ? EmptySlotHandler === null || EmptySlotHandler === void 0 ? void 0 : EmptySlotHandler.id : undefined, value: typeof EmptySlotHandler === "object" && "value" in EmptySlotHandler ? EmptySlotHandler === null || EmptySlotHandler === void 0 ? void 0 : EmptySlotHandler.value : EmptySlotHandler, isRaw: typeof EmptySlotHandler === "object" && "isRaw" in EmptySlotHandler && EmptySlotHandler.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DefaultScale", id: typeof DefaultScale === "object" && "id" in DefaultScale ? DefaultScale === null || DefaultScale === void 0 ? void 0 : DefaultScale.id : undefined, value: typeof DefaultScale === "object" && "value" in DefaultScale ? DefaultScale === null || DefaultScale === void 0 ? void 0 : DefaultScale.value : DefaultScale, isRaw: typeof DefaultScale === "object" && "isRaw" in DefaultScale && DefaultScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "NameTagText", id: typeof NameTagText === "object" && "id" in NameTagText ? NameTagText === null || NameTagText === void 0 ? void 0 : NameTagText.id : undefined, value: typeof NameTagText === "object" && "value" in NameTagText ? NameTagText === null || NameTagText === void 0 ? void 0 : NameTagText.value : NameTagText, isRaw: typeof NameTagText === "object" && "isRaw" in NameTagText && NameTagText.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "NameTagColor", id: typeof NameTagColor === "object" && "id" in NameTagColor ? NameTagColor === null || NameTagColor === void 0 ? void 0 : NameTagColor.id : undefined, value: typeof NameTagColor === "object" && "value" in NameTagColor ? NameTagColor === null || NameTagColor === void 0 ? void 0 : NameTagColor.value : NameTagColor, isRaw: typeof NameTagColor === "object" && "isRaw" in NameTagColor && NameTagColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "NameTagOutline", id: typeof NameTagOutline === "object" && "id" in NameTagOutline ? NameTagOutline === null || NameTagOutline === void 0 ? void 0 : NameTagOutline.id : undefined, value: typeof NameTagOutline === "object" && "value" in NameTagOutline ? NameTagOutline === null || NameTagOutline === void 0 ? void 0 : NameTagOutline.value : NameTagOutline, isRaw: typeof NameTagOutline === "object" && "isRaw" in NameTagOutline && NameTagOutline.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "NameTagBackground", id: typeof NameTagBackground === "object" && "id" in NameTagBackground ? NameTagBackground === null || NameTagBackground === void 0 ? void 0 : NameTagBackground.id : undefined, value: typeof NameTagBackground === "object" && "value" in NameTagBackground ? NameTagBackground === null || NameTagBackground === void 0 ? void 0 : NameTagBackground.value : NameTagBackground, isRaw: typeof NameTagBackground === "object" && "isRaw" in NameTagBackground && NameTagBackground.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_badgeTemplates", id: typeof _badgeTemplates === "object" && "id" in _badgeTemplates ? _badgeTemplates === null || _badgeTemplates === void 0 ? void 0 : _badgeTemplates.id : undefined, value: typeof _badgeTemplates === "object" && "value" in _badgeTemplates ? _badgeTemplates === null || _badgeTemplates === void 0 ? void 0 : _badgeTemplates.value : _badgeTemplates, isRaw: typeof _badgeTemplates === "object" && "isRaw" in _badgeTemplates && _badgeTemplates.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_autoNameBadge", id: typeof _autoNameBadge === "object" && "id" in _autoNameBadge ? _autoNameBadge === null || _autoNameBadge === void 0 ? void 0 : _autoNameBadge.id : undefined, value: typeof _autoNameBadge === "object" && "value" in _autoNameBadge ? _autoNameBadge === null || _autoNameBadge === void 0 ? void 0 : _autoNameBadge.value : _autoNameBadge, isRaw: typeof _autoNameBadge === "object" && "isRaw" in _autoNameBadge && _autoNameBadge.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_autoIconBadge", id: typeof _autoIconBadge === "object" && "id" in _autoIconBadge ? _autoIconBadge === null || _autoIconBadge === void 0 ? void 0 : _autoIconBadge.id : undefined, value: typeof _autoIconBadge === "object" && "value" in _autoIconBadge ? _autoIconBadge === null || _autoIconBadge === void 0 ? void 0 : _autoIconBadge.value : _autoIconBadge, isRaw: typeof _autoIconBadge === "object" && "isRaw" in _autoIconBadge && _autoIconBadge.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_autoLiveIndicator", id: typeof _autoLiveIndicator === "object" && "id" in _autoLiveIndicator ? _autoLiveIndicator === null || _autoLiveIndicator === void 0 ? void 0 : _autoLiveIndicator.id : undefined, value: typeof _autoLiveIndicator === "object" && "value" in _autoLiveIndicator ? _autoLiveIndicator === null || _autoLiveIndicator === void 0 ? void 0 : _autoLiveIndicator.value : _autoLiveIndicator, isRaw: typeof _autoLiveIndicator === "object" && "isRaw" in _autoLiveIndicator && _autoLiveIndicator.isRaw ? true : undefined })] }))); } exports.AvatarManager = AvatarManager; ;