neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 12.7 kB
JavaScript
;
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.PlayOneShotAndWait = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function PlayOneShotAndWait(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _activeVisual = props._activeVisual, Clip = props.Clip, Volume = props.Volume, Speed = props.Speed, Spatialize = props.Spatialize, SpatialBlend = props.SpatialBlend, Point = props.Point, Root = props.Root, Priority = props.Priority, Doppler = props.Doppler, MinDistance = props.MinDistance, MaxDistance = props.MaxDistance, Rolloff = props.Rolloff, Group = props.Group, DistanceSpace = props.DistanceSpace, MinScale = props.MinScale, MaxScale = props.MaxScale, ParentUnderRoot = props.ParentUnderRoot, LocalOnly = props.LocalOnly, OnStartedPlaying = props.OnStartedPlaying, OnFinishedPlaying = props.OnFinishedPlaying;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LogiX.Audio.PlayOneShotAndWait", 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.CleanupRef`1[FrooxEngine.Slot]", name: "_activeVisual", id: typeof _activeVisual === "object" && "id" in _activeVisual ? _activeVisual === null || _activeVisual === void 0 ? void 0 : _activeVisual.id : undefined, value: typeof _activeVisual === "object" && "value" in _activeVisual ? _activeVisual === null || _activeVisual === void 0 ? void 0 : _activeVisual.value : _activeVisual, isRaw: typeof _activeVisual === "object" && "isRaw" in _activeVisual && _activeVisual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[FrooxEngine.IAssetProvider`1[FrooxEngine.AudioClip]]", name: "Clip", id: typeof Clip === "object" && "id" in Clip ? Clip === null || Clip === void 0 ? void 0 : Clip.id : undefined, value: typeof Clip === "object" && "value" in Clip ? Clip === null || Clip === void 0 ? void 0 : Clip.value : Clip, isRaw: typeof Clip === "object" && "isRaw" in Clip && Clip.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`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.LogiX.Input`1[System.Single]", name: "Speed", id: typeof Speed === "object" && "id" in Speed ? Speed === null || Speed === void 0 ? void 0 : Speed.id : undefined, value: typeof Speed === "object" && "value" in Speed ? Speed === null || Speed === void 0 ? void 0 : Speed.value : Speed, isRaw: typeof Speed === "object" && "isRaw" in Speed && Speed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`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.LogiX.Input`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.LogiX.Input`1[BaseX.float3]", name: "Point", id: typeof Point === "object" && "id" in Point ? Point === null || Point === void 0 ? void 0 : Point.id : undefined, value: typeof Point === "object" && "value" in Point ? Point === null || Point === void 0 ? void 0 : Point.value : Point, isRaw: typeof Point === "object" && "isRaw" in Point && Point.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[FrooxEngine.Slot]", name: "Root", id: typeof Root === "object" && "id" in Root ? Root === null || Root === void 0 ? void 0 : Root.id : undefined, value: typeof Root === "object" && "value" in Root ? Root === null || Root === void 0 ? void 0 : Root.value : Root, isRaw: typeof Root === "object" && "isRaw" in Root && Root.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`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.LogiX.Input`1[System.Single]", name: "Doppler", id: typeof Doppler === "object" && "id" in Doppler ? Doppler === null || Doppler === void 0 ? void 0 : Doppler.id : undefined, value: typeof Doppler === "object" && "value" in Doppler ? Doppler === null || Doppler === void 0 ? void 0 : Doppler.value : Doppler, isRaw: typeof Doppler === "object" && "isRaw" in Doppler && Doppler.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`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.LogiX.Input`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.LogiX.Input`1[FrooxEngine.AudioRolloffMode]", name: "Rolloff", id: typeof Rolloff === "object" && "id" in Rolloff ? Rolloff === null || Rolloff === void 0 ? void 0 : Rolloff.id : undefined, value: typeof Rolloff === "object" && "value" in Rolloff ? Rolloff === null || Rolloff === void 0 ? void 0 : Rolloff.value : Rolloff, isRaw: typeof Rolloff === "object" && "isRaw" in Rolloff && Rolloff.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[FrooxEngine.AudioTypeGroup]", name: "Group", id: typeof Group === "object" && "id" in Group ? Group === null || Group === void 0 ? void 0 : Group.id : undefined, value: typeof Group === "object" && "value" in Group ? Group === null || Group === void 0 ? void 0 : Group.value : Group, isRaw: typeof Group === "object" && "isRaw" in Group && Group.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`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.LogiX.Input`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.LogiX.Input`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.LogiX.Input`1[System.Boolean]", name: "ParentUnderRoot", id: typeof ParentUnderRoot === "object" && "id" in ParentUnderRoot ? ParentUnderRoot === null || ParentUnderRoot === void 0 ? void 0 : ParentUnderRoot.id : undefined, value: typeof ParentUnderRoot === "object" && "value" in ParentUnderRoot ? ParentUnderRoot === null || ParentUnderRoot === void 0 ? void 0 : ParentUnderRoot.value : ParentUnderRoot, isRaw: typeof ParentUnderRoot === "object" && "isRaw" in ParentUnderRoot && ParentUnderRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[System.Boolean]", name: "LocalOnly", id: typeof LocalOnly === "object" && "id" in LocalOnly ? LocalOnly === null || LocalOnly === void 0 ? void 0 : LocalOnly.id : undefined, value: typeof LocalOnly === "object" && "value" in LocalOnly ? LocalOnly === null || LocalOnly === void 0 ? void 0 : LocalOnly.value : LocalOnly, isRaw: typeof LocalOnly === "object" && "isRaw" in LocalOnly && LocalOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Impulse", name: "OnStartedPlaying", id: typeof OnStartedPlaying === "object" && "id" in OnStartedPlaying ? OnStartedPlaying === null || OnStartedPlaying === void 0 ? void 0 : OnStartedPlaying.id : undefined, value: typeof OnStartedPlaying === "object" && "value" in OnStartedPlaying ? OnStartedPlaying === null || OnStartedPlaying === void 0 ? void 0 : OnStartedPlaying.value : OnStartedPlaying, isRaw: typeof OnStartedPlaying === "object" && "isRaw" in OnStartedPlaying && OnStartedPlaying.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Impulse", name: "OnFinishedPlaying", id: typeof OnFinishedPlaying === "object" && "id" in OnFinishedPlaying ? OnFinishedPlaying === null || OnFinishedPlaying === void 0 ? void 0 : OnFinishedPlaying.id : undefined, value: typeof OnFinishedPlaying === "object" && "value" in OnFinishedPlaying ? OnFinishedPlaying === null || OnFinishedPlaying === void 0 ? void 0 : OnFinishedPlaying.value : OnFinishedPlaying, isRaw: typeof OnFinishedPlaying === "object" && "isRaw" in OnFinishedPlaying && OnFinishedPlaying.isRaw ? true : undefined })] })));
}
exports.PlayOneShotAndWait = PlayOneShotAndWait;
;