UNPKG

neos-script

Version:

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

23 lines (22 loc) 15.6 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.CommonAvatarBuilder = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function CommonAvatarBuilder(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, LoadCloudAvatars = props.LoadCloudAvatars, CustomAvatarTemplates = props.CustomAvatarTemplates, AutoInject = props.AutoInject, SetupNameBadges = props.SetupNameBadges, SetupIconBadges = props.SetupIconBadges, SetupServerVoice = props.SetupServerVoice, SetupClientVoice = props.SetupClientVoice, SetupServerTools = props.SetupServerTools, SetupClientTools = props.SetupClientTools, SetupLocomotion = props.SetupLocomotion, AllowLocomotion = props.AllowLocomotion, DefaultHostSilenced = props.DefaultHostSilenced, DefaultClientSilenced = props.DefaultClientSilenced, LocomotionModules = props.LocomotionModules, ForceDefaultLocomotionModule = props.ForceDefaultLocomotionModule, SyncActiveLocomotionModule = props.SyncActiveLocomotionModule, SetupItemShelves = props.SetupItemShelves, ParentClientsToServer = props.ParentClientsToServer, AlignTracking = props.AlignTracking, EmptyAvatarSlotHandler = props.EmptyAvatarSlotHandler, FillEmptySlots = props.FillEmptySlots; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.CommonAvatarBuilder", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 3 }, { 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: "LoadCloudAvatars", id: typeof LoadCloudAvatars === "object" && "id" in LoadCloudAvatars ? LoadCloudAvatars === null || LoadCloudAvatars === void 0 ? void 0 : LoadCloudAvatars.id : undefined, value: typeof LoadCloudAvatars === "object" && "value" in LoadCloudAvatars ? LoadCloudAvatars === null || LoadCloudAvatars === void 0 ? void 0 : LoadCloudAvatars.value : LoadCloudAvatars, isRaw: typeof LoadCloudAvatars === "object" && "isRaw" in LoadCloudAvatars && LoadCloudAvatars.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.CommonAvatarBuilder+AvatarTemplate]", name: "CustomAvatarTemplates", id: typeof CustomAvatarTemplates === "object" && "id" in CustomAvatarTemplates ? CustomAvatarTemplates === null || CustomAvatarTemplates === void 0 ? void 0 : CustomAvatarTemplates.id : undefined, value: typeof CustomAvatarTemplates === "object" && "value" in CustomAvatarTemplates ? CustomAvatarTemplates === null || CustomAvatarTemplates === void 0 ? void 0 : CustomAvatarTemplates.value : CustomAvatarTemplates, isRaw: typeof CustomAvatarTemplates === "object" && "isRaw" in CustomAvatarTemplates && CustomAvatarTemplates.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "AutoInject", id: typeof AutoInject === "object" && "id" in AutoInject ? AutoInject === null || AutoInject === void 0 ? void 0 : AutoInject.id : undefined, value: typeof AutoInject === "object" && "value" in AutoInject ? AutoInject === null || AutoInject === void 0 ? void 0 : AutoInject.value : AutoInject, isRaw: typeof AutoInject === "object" && "isRaw" in AutoInject && AutoInject.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SetupNameBadges", id: typeof SetupNameBadges === "object" && "id" in SetupNameBadges ? SetupNameBadges === null || SetupNameBadges === void 0 ? void 0 : SetupNameBadges.id : undefined, value: typeof SetupNameBadges === "object" && "value" in SetupNameBadges ? SetupNameBadges === null || SetupNameBadges === void 0 ? void 0 : SetupNameBadges.value : SetupNameBadges, isRaw: typeof SetupNameBadges === "object" && "isRaw" in SetupNameBadges && SetupNameBadges.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SetupIconBadges", id: typeof SetupIconBadges === "object" && "id" in SetupIconBadges ? SetupIconBadges === null || SetupIconBadges === void 0 ? void 0 : SetupIconBadges.id : undefined, value: typeof SetupIconBadges === "object" && "value" in SetupIconBadges ? SetupIconBadges === null || SetupIconBadges === void 0 ? void 0 : SetupIconBadges.value : SetupIconBadges, isRaw: typeof SetupIconBadges === "object" && "isRaw" in SetupIconBadges && SetupIconBadges.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SetupServerVoice", id: typeof SetupServerVoice === "object" && "id" in SetupServerVoice ? SetupServerVoice === null || SetupServerVoice === void 0 ? void 0 : SetupServerVoice.id : undefined, value: typeof SetupServerVoice === "object" && "value" in SetupServerVoice ? SetupServerVoice === null || SetupServerVoice === void 0 ? void 0 : SetupServerVoice.value : SetupServerVoice, isRaw: typeof SetupServerVoice === "object" && "isRaw" in SetupServerVoice && SetupServerVoice.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SetupClientVoice", id: typeof SetupClientVoice === "object" && "id" in SetupClientVoice ? SetupClientVoice === null || SetupClientVoice === void 0 ? void 0 : SetupClientVoice.id : undefined, value: typeof SetupClientVoice === "object" && "value" in SetupClientVoice ? SetupClientVoice === null || SetupClientVoice === void 0 ? void 0 : SetupClientVoice.value : SetupClientVoice, isRaw: typeof SetupClientVoice === "object" && "isRaw" in SetupClientVoice && SetupClientVoice.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SetupServerTools", id: typeof SetupServerTools === "object" && "id" in SetupServerTools ? SetupServerTools === null || SetupServerTools === void 0 ? void 0 : SetupServerTools.id : undefined, value: typeof SetupServerTools === "object" && "value" in SetupServerTools ? SetupServerTools === null || SetupServerTools === void 0 ? void 0 : SetupServerTools.value : SetupServerTools, isRaw: typeof SetupServerTools === "object" && "isRaw" in SetupServerTools && SetupServerTools.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SetupClientTools", id: typeof SetupClientTools === "object" && "id" in SetupClientTools ? SetupClientTools === null || SetupClientTools === void 0 ? void 0 : SetupClientTools.id : undefined, value: typeof SetupClientTools === "object" && "value" in SetupClientTools ? SetupClientTools === null || SetupClientTools === void 0 ? void 0 : SetupClientTools.value : SetupClientTools, isRaw: typeof SetupClientTools === "object" && "isRaw" in SetupClientTools && SetupClientTools.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SetupLocomotion", id: typeof SetupLocomotion === "object" && "id" in SetupLocomotion ? SetupLocomotion === null || SetupLocomotion === void 0 ? void 0 : SetupLocomotion.id : undefined, value: typeof SetupLocomotion === "object" && "value" in SetupLocomotion ? SetupLocomotion === null || SetupLocomotion === void 0 ? void 0 : SetupLocomotion.value : SetupLocomotion, isRaw: typeof SetupLocomotion === "object" && "isRaw" in SetupLocomotion && SetupLocomotion.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AllowLocomotion", id: typeof AllowLocomotion === "object" && "id" in AllowLocomotion ? AllowLocomotion === null || AllowLocomotion === void 0 ? void 0 : AllowLocomotion.id : undefined, value: typeof AllowLocomotion === "object" && "value" in AllowLocomotion ? AllowLocomotion === null || AllowLocomotion === void 0 ? void 0 : AllowLocomotion.value : AllowLocomotion, isRaw: typeof AllowLocomotion === "object" && "isRaw" in AllowLocomotion && AllowLocomotion.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "DefaultHostSilenced", id: typeof DefaultHostSilenced === "object" && "id" in DefaultHostSilenced ? DefaultHostSilenced === null || DefaultHostSilenced === void 0 ? void 0 : DefaultHostSilenced.id : undefined, value: typeof DefaultHostSilenced === "object" && "value" in DefaultHostSilenced ? DefaultHostSilenced === null || DefaultHostSilenced === void 0 ? void 0 : DefaultHostSilenced.value : DefaultHostSilenced, isRaw: typeof DefaultHostSilenced === "object" && "isRaw" in DefaultHostSilenced && DefaultHostSilenced.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "DefaultClientSilenced", id: typeof DefaultClientSilenced === "object" && "id" in DefaultClientSilenced ? DefaultClientSilenced === null || DefaultClientSilenced === void 0 ? void 0 : DefaultClientSilenced.id : undefined, value: typeof DefaultClientSilenced === "object" && "value" in DefaultClientSilenced ? DefaultClientSilenced === null || DefaultClientSilenced === void 0 ? void 0 : DefaultClientSilenced.value : DefaultClientSilenced, isRaw: typeof DefaultClientSilenced === "object" && "isRaw" in DefaultClientSilenced && DefaultClientSilenced.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "LocomotionModules", id: typeof LocomotionModules === "object" && "id" in LocomotionModules ? LocomotionModules === null || LocomotionModules === void 0 ? void 0 : LocomotionModules.id : undefined, value: typeof LocomotionModules === "object" && "value" in LocomotionModules ? LocomotionModules === null || LocomotionModules === void 0 ? void 0 : LocomotionModules.value : LocomotionModules, isRaw: typeof LocomotionModules === "object" && "isRaw" in LocomotionModules && LocomotionModules.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ILocomotionModule]", name: "ForceDefaultLocomotionModule", id: typeof ForceDefaultLocomotionModule === "object" && "id" in ForceDefaultLocomotionModule ? ForceDefaultLocomotionModule === null || ForceDefaultLocomotionModule === void 0 ? void 0 : ForceDefaultLocomotionModule.id : undefined, value: typeof ForceDefaultLocomotionModule === "object" && "value" in ForceDefaultLocomotionModule ? ForceDefaultLocomotionModule === null || ForceDefaultLocomotionModule === void 0 ? void 0 : ForceDefaultLocomotionModule.value : ForceDefaultLocomotionModule, isRaw: typeof ForceDefaultLocomotionModule === "object" && "isRaw" in ForceDefaultLocomotionModule && ForceDefaultLocomotionModule.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SyncActiveLocomotionModule", id: typeof SyncActiveLocomotionModule === "object" && "id" in SyncActiveLocomotionModule ? SyncActiveLocomotionModule === null || SyncActiveLocomotionModule === void 0 ? void 0 : SyncActiveLocomotionModule.id : undefined, value: typeof SyncActiveLocomotionModule === "object" && "value" in SyncActiveLocomotionModule ? SyncActiveLocomotionModule === null || SyncActiveLocomotionModule === void 0 ? void 0 : SyncActiveLocomotionModule.value : SyncActiveLocomotionModule, isRaw: typeof SyncActiveLocomotionModule === "object" && "isRaw" in SyncActiveLocomotionModule && SyncActiveLocomotionModule.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SetupItemShelves", id: typeof SetupItemShelves === "object" && "id" in SetupItemShelves ? SetupItemShelves === null || SetupItemShelves === void 0 ? void 0 : SetupItemShelves.id : undefined, value: typeof SetupItemShelves === "object" && "value" in SetupItemShelves ? SetupItemShelves === null || SetupItemShelves === void 0 ? void 0 : SetupItemShelves.value : SetupItemShelves, isRaw: typeof SetupItemShelves === "object" && "isRaw" in SetupItemShelves && SetupItemShelves.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ParentClientsToServer", id: typeof ParentClientsToServer === "object" && "id" in ParentClientsToServer ? ParentClientsToServer === null || ParentClientsToServer === void 0 ? void 0 : ParentClientsToServer.id : undefined, value: typeof ParentClientsToServer === "object" && "value" in ParentClientsToServer ? ParentClientsToServer === null || ParentClientsToServer === void 0 ? void 0 : ParentClientsToServer.value : ParentClientsToServer, isRaw: typeof ParentClientsToServer === "object" && "isRaw" in ParentClientsToServer && ParentClientsToServer.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AlignTracking", id: typeof AlignTracking === "object" && "id" in AlignTracking ? AlignTracking === null || AlignTracking === void 0 ? void 0 : AlignTracking.id : undefined, value: typeof AlignTracking === "object" && "value" in AlignTracking ? AlignTracking === null || AlignTracking === void 0 ? void 0 : AlignTracking.value : AlignTracking, isRaw: typeof AlignTracking === "object" && "isRaw" in AlignTracking && AlignTracking.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.CommonAvatar.IEmptyAvatarSlotHandler]", name: "EmptyAvatarSlotHandler", id: typeof EmptyAvatarSlotHandler === "object" && "id" in EmptyAvatarSlotHandler ? EmptyAvatarSlotHandler === null || EmptyAvatarSlotHandler === void 0 ? void 0 : EmptyAvatarSlotHandler.id : undefined, value: typeof EmptyAvatarSlotHandler === "object" && "value" in EmptyAvatarSlotHandler ? EmptyAvatarSlotHandler === null || EmptyAvatarSlotHandler === void 0 ? void 0 : EmptyAvatarSlotHandler.value : EmptyAvatarSlotHandler, isRaw: typeof EmptyAvatarSlotHandler === "object" && "isRaw" in EmptyAvatarSlotHandler && EmptyAvatarSlotHandler.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "FillEmptySlots", id: typeof FillEmptySlots === "object" && "id" in FillEmptySlots ? FillEmptySlots === null || FillEmptySlots === void 0 ? void 0 : FillEmptySlots.id : undefined, value: typeof FillEmptySlots === "object" && "value" in FillEmptySlots ? FillEmptySlots === null || FillEmptySlots === void 0 ? void 0 : FillEmptySlots.value : FillEmptySlots, isRaw: typeof FillEmptySlots === "object" && "isRaw" in FillEmptySlots && FillEmptySlots.isRaw ? true : undefined })] }))); } exports.CommonAvatarBuilder = CommonAvatarBuilder; ;