UNPKG

neos-script

Version:

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

23 lines (22 loc) 9.73 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.AudioOutput = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function AudioOutput(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Volume = props.Volume, Source = props.Source, SpatialBlend = props.SpatialBlend, Spatialize = props.Spatialize, DopplerLevel = props.DopplerLevel, RolloffMode = props.RolloffMode, MinDistance = props.MinDistance, MaxDistance = props.MaxDistance, Priority = props.Priority, AudioTypeGroup = props.AudioTypeGroup, DistanceSpace = props.DistanceSpace, MinScale = props.MinScale, MaxScale = props.MaxScale, IgnoreReverbZones = props.IgnoreReverbZones, excludedUsers = props.excludedUsers; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.AudioOutput", 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: "Volume", id: typeof Volume === "object" && "id" in Volume ? Volume === null || Volume === void 0 ? void 0 : Volume.id : undefined, value: typeof Volume === "object" && "value" in Volume ? Volume === null || Volume === void 0 ? void 0 : Volume.value : Volume, isRaw: typeof Volume === "object" && "isRaw" in Volume && Volume.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.IAudioSource]", name: "Source", id: typeof Source === "object" && "id" in Source ? Source === null || Source === void 0 ? void 0 : Source.id : undefined, value: typeof Source === "object" && "value" in Source ? Source === null || Source === void 0 ? void 0 : Source.value : Source, isRaw: typeof Source === "object" && "isRaw" in Source && Source.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SpatialBlend", id: typeof SpatialBlend === "object" && "id" in SpatialBlend ? SpatialBlend === null || SpatialBlend === void 0 ? void 0 : SpatialBlend.id : undefined, value: typeof SpatialBlend === "object" && "value" in SpatialBlend ? SpatialBlend === null || SpatialBlend === void 0 ? void 0 : SpatialBlend.value : SpatialBlend, isRaw: typeof SpatialBlend === "object" && "isRaw" in SpatialBlend && SpatialBlend.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Spatialize", id: typeof Spatialize === "object" && "id" in Spatialize ? Spatialize === null || Spatialize === void 0 ? void 0 : Spatialize.id : undefined, value: typeof Spatialize === "object" && "value" in Spatialize ? Spatialize === null || Spatialize === void 0 ? void 0 : Spatialize.value : Spatialize, isRaw: typeof Spatialize === "object" && "isRaw" in Spatialize && Spatialize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DopplerLevel", id: typeof DopplerLevel === "object" && "id" in DopplerLevel ? DopplerLevel === null || DopplerLevel === void 0 ? void 0 : DopplerLevel.id : undefined, value: typeof DopplerLevel === "object" && "value" in DopplerLevel ? DopplerLevel === null || DopplerLevel === void 0 ? void 0 : DopplerLevel.value : DopplerLevel, isRaw: typeof DopplerLevel === "object" && "isRaw" in DopplerLevel && DopplerLevel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.AudioRolloffMode]", name: "RolloffMode", id: typeof RolloffMode === "object" && "id" in RolloffMode ? RolloffMode === null || RolloffMode === void 0 ? void 0 : RolloffMode.id : undefined, value: typeof RolloffMode === "object" && "value" in RolloffMode ? RolloffMode === null || RolloffMode === void 0 ? void 0 : RolloffMode.value : RolloffMode, isRaw: typeof RolloffMode === "object" && "isRaw" in RolloffMode && RolloffMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinDistance", id: typeof MinDistance === "object" && "id" in MinDistance ? MinDistance === null || MinDistance === void 0 ? void 0 : MinDistance.id : undefined, value: typeof MinDistance === "object" && "value" in MinDistance ? MinDistance === null || MinDistance === void 0 ? void 0 : MinDistance.value : MinDistance, isRaw: typeof MinDistance === "object" && "isRaw" in MinDistance && MinDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxDistance", id: typeof MaxDistance === "object" && "id" in MaxDistance ? MaxDistance === null || MaxDistance === void 0 ? void 0 : MaxDistance.id : undefined, value: typeof MaxDistance === "object" && "value" in MaxDistance ? MaxDistance === null || MaxDistance === void 0 ? void 0 : MaxDistance.value : MaxDistance, isRaw: typeof MaxDistance === "object" && "isRaw" in MaxDistance && MaxDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "Priority", id: typeof Priority === "object" && "id" in Priority ? Priority === null || Priority === void 0 ? void 0 : Priority.id : undefined, value: typeof Priority === "object" && "value" in Priority ? Priority === null || Priority === void 0 ? void 0 : Priority.value : Priority, isRaw: typeof Priority === "object" && "isRaw" in Priority && Priority.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.AudioTypeGroup]", name: "AudioTypeGroup", id: typeof AudioTypeGroup === "object" && "id" in AudioTypeGroup ? AudioTypeGroup === null || AudioTypeGroup === void 0 ? void 0 : AudioTypeGroup.id : undefined, value: typeof AudioTypeGroup === "object" && "value" in AudioTypeGroup ? AudioTypeGroup === null || AudioTypeGroup === void 0 ? void 0 : AudioTypeGroup.value : AudioTypeGroup, isRaw: typeof AudioTypeGroup === "object" && "isRaw" in AudioTypeGroup && AudioTypeGroup.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.AudioDistanceSpace]", name: "DistanceSpace", id: typeof DistanceSpace === "object" && "id" in DistanceSpace ? DistanceSpace === null || DistanceSpace === void 0 ? void 0 : DistanceSpace.id : undefined, value: typeof DistanceSpace === "object" && "value" in DistanceSpace ? DistanceSpace === null || DistanceSpace === void 0 ? void 0 : DistanceSpace.value : DistanceSpace, isRaw: typeof DistanceSpace === "object" && "isRaw" in DistanceSpace && DistanceSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinScale", id: typeof MinScale === "object" && "id" in MinScale ? MinScale === null || MinScale === void 0 ? void 0 : MinScale.id : undefined, value: typeof MinScale === "object" && "value" in MinScale ? MinScale === null || MinScale === void 0 ? void 0 : MinScale.value : MinScale, isRaw: typeof MinScale === "object" && "isRaw" in MinScale && MinScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxScale", id: typeof MaxScale === "object" && "id" in MaxScale ? MaxScale === null || MaxScale === void 0 ? void 0 : MaxScale.id : undefined, value: typeof MaxScale === "object" && "value" in MaxScale ? MaxScale === null || MaxScale === void 0 ? void 0 : MaxScale.value : MaxScale, isRaw: typeof MaxScale === "object" && "isRaw" in MaxScale && MaxScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IgnoreReverbZones", id: typeof IgnoreReverbZones === "object" && "id" in IgnoreReverbZones ? IgnoreReverbZones === null || IgnoreReverbZones === void 0 ? void 0 : IgnoreReverbZones.id : undefined, value: typeof IgnoreReverbZones === "object" && "value" in IgnoreReverbZones ? IgnoreReverbZones === null || IgnoreReverbZones === void 0 ? void 0 : IgnoreReverbZones.value : IgnoreReverbZones, isRaw: typeof IgnoreReverbZones === "object" && "isRaw" in IgnoreReverbZones && IgnoreReverbZones.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRefList`1[FrooxEngine.User]", name: "excludedUsers", id: typeof excludedUsers === "object" && "id" in excludedUsers ? excludedUsers === null || excludedUsers === void 0 ? void 0 : excludedUsers.id : undefined, value: typeof excludedUsers === "object" && "value" in excludedUsers ? excludedUsers === null || excludedUsers === void 0 ? void 0 : excludedUsers.value : excludedUsers, isRaw: typeof excludedUsers === "object" && "isRaw" in excludedUsers && excludedUsers.isRaw ? true : undefined })] }))); } exports.AudioOutput = AudioOutput; ;