neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 4.13 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.PlaybackStateDriver = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function PlaybackStateDriver(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Source = props.Source, IsPlaying = props.IsPlaying, IsNotPlaying = props.IsNotPlaying, IsPaused = props.IsPaused, IsStopped = props.IsStopped;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.PlaybackStateDriver", 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.SyncRef`1[FrooxEngine.IPlayable]", 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.FieldDrive`1[System.Boolean]", name: "IsPlaying", id: typeof IsPlaying === "object" && "id" in IsPlaying ? IsPlaying === null || IsPlaying === void 0 ? void 0 : IsPlaying.id : undefined, value: typeof IsPlaying === "object" && "value" in IsPlaying ? IsPlaying === null || IsPlaying === void 0 ? void 0 : IsPlaying.value : IsPlaying, isRaw: typeof IsPlaying === "object" && "isRaw" in IsPlaying && IsPlaying.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "IsNotPlaying", id: typeof IsNotPlaying === "object" && "id" in IsNotPlaying ? IsNotPlaying === null || IsNotPlaying === void 0 ? void 0 : IsNotPlaying.id : undefined, value: typeof IsNotPlaying === "object" && "value" in IsNotPlaying ? IsNotPlaying === null || IsNotPlaying === void 0 ? void 0 : IsNotPlaying.value : IsNotPlaying, isRaw: typeof IsNotPlaying === "object" && "isRaw" in IsNotPlaying && IsNotPlaying.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "IsPaused", id: typeof IsPaused === "object" && "id" in IsPaused ? IsPaused === null || IsPaused === void 0 ? void 0 : IsPaused.id : undefined, value: typeof IsPaused === "object" && "value" in IsPaused ? IsPaused === null || IsPaused === void 0 ? void 0 : IsPaused.value : IsPaused, isRaw: typeof IsPaused === "object" && "isRaw" in IsPaused && IsPaused.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "IsStopped", id: typeof IsStopped === "object" && "id" in IsStopped ? IsStopped === null || IsStopped === void 0 ? void 0 : IsStopped.id : undefined, value: typeof IsStopped === "object" && "value" in IsStopped ? IsStopped === null || IsStopped === void 0 ? void 0 : IsStopped.value : IsStopped, isRaw: typeof IsStopped === "object" && "isRaw" in IsStopped && IsStopped.isRaw ? true : undefined })] })));
}
exports.PlaybackStateDriver = PlaybackStateDriver;
;