neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 4 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.DynamicVisemeDriver = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function DynamicVisemeDriver(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Source = props.Source, MouthTrackingSource = props.MouthTrackingSource, VoiceMouthSupressWeight = props.VoiceMouthSupressWeight, Drivers = props.Drivers;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.DynamicVisemeDriver", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { 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.VisemeAnalyzer]", 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.SyncRef`1[FrooxEngine.IMouthTrackingSourceComponent]", name: "MouthTrackingSource", id: typeof MouthTrackingSource === "object" && "id" in MouthTrackingSource ? MouthTrackingSource === null || MouthTrackingSource === void 0 ? void 0 : MouthTrackingSource.id : undefined, value: typeof MouthTrackingSource === "object" && "value" in MouthTrackingSource ? MouthTrackingSource === null || MouthTrackingSource === void 0 ? void 0 : MouthTrackingSource.value : MouthTrackingSource, isRaw: typeof MouthTrackingSource === "object" && "isRaw" in MouthTrackingSource && MouthTrackingSource.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "VoiceMouthSupressWeight", id: typeof VoiceMouthSupressWeight === "object" && "id" in VoiceMouthSupressWeight ? VoiceMouthSupressWeight === null || VoiceMouthSupressWeight === void 0 ? void 0 : VoiceMouthSupressWeight.id : undefined, value: typeof VoiceMouthSupressWeight === "object" && "value" in VoiceMouthSupressWeight ? VoiceMouthSupressWeight === null || VoiceMouthSupressWeight === void 0 ? void 0 : VoiceMouthSupressWeight.value : VoiceMouthSupressWeight, isRaw: typeof VoiceMouthSupressWeight === "object" && "isRaw" in VoiceMouthSupressWeight && VoiceMouthSupressWeight.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.DynamicVisemeDriver+TargetDriver]", name: "Drivers", id: typeof Drivers === "object" && "id" in Drivers ? Drivers === null || Drivers === void 0 ? void 0 : Drivers.id : undefined, value: typeof Drivers === "object" && "value" in Drivers ? Drivers === null || Drivers === void 0 ? void 0 : Drivers.value : Drivers, isRaw: typeof Drivers === "object" && "isRaw" in Drivers && Drivers.isRaw ? true : undefined })] })));
}
exports.DynamicVisemeDriver = DynamicVisemeDriver;
;