neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 5.41 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.MirrorTransform = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function MirrorTransform(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, MirrorSource = props.MirrorSource, MirrorPlane = props.MirrorPlane, MirrorOffset = props.MirrorOffset, MirrorNormal = props.MirrorNormal, AllowWriteBack = props.AllowWriteBack, _position = props._position, _rotation = props._rotation;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.MirrorTransform", 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.Slot]", name: "MirrorSource", id: typeof MirrorSource === "object" && "id" in MirrorSource ? MirrorSource === null || MirrorSource === void 0 ? void 0 : MirrorSource.id : undefined, value: typeof MirrorSource === "object" && "value" in MirrorSource ? MirrorSource === null || MirrorSource === void 0 ? void 0 : MirrorSource.value : MirrorSource, isRaw: typeof MirrorSource === "object" && "isRaw" in MirrorSource && MirrorSource.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "MirrorPlane", id: typeof MirrorPlane === "object" && "id" in MirrorPlane ? MirrorPlane === null || MirrorPlane === void 0 ? void 0 : MirrorPlane.id : undefined, value: typeof MirrorPlane === "object" && "value" in MirrorPlane ? MirrorPlane === null || MirrorPlane === void 0 ? void 0 : MirrorPlane.value : MirrorPlane, isRaw: typeof MirrorPlane === "object" && "isRaw" in MirrorPlane && MirrorPlane.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "MirrorOffset", id: typeof MirrorOffset === "object" && "id" in MirrorOffset ? MirrorOffset === null || MirrorOffset === void 0 ? void 0 : MirrorOffset.id : undefined, value: typeof MirrorOffset === "object" && "value" in MirrorOffset ? MirrorOffset === null || MirrorOffset === void 0 ? void 0 : MirrorOffset.value : MirrorOffset, isRaw: typeof MirrorOffset === "object" && "isRaw" in MirrorOffset && MirrorOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "MirrorNormal", id: typeof MirrorNormal === "object" && "id" in MirrorNormal ? MirrorNormal === null || MirrorNormal === void 0 ? void 0 : MirrorNormal.id : undefined, value: typeof MirrorNormal === "object" && "value" in MirrorNormal ? MirrorNormal === null || MirrorNormal === void 0 ? void 0 : MirrorNormal.value : MirrorNormal, isRaw: typeof MirrorNormal === "object" && "isRaw" in MirrorNormal && MirrorNormal.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AllowWriteBack", id: typeof AllowWriteBack === "object" && "id" in AllowWriteBack ? AllowWriteBack === null || AllowWriteBack === void 0 ? void 0 : AllowWriteBack.id : undefined, value: typeof AllowWriteBack === "object" && "value" in AllowWriteBack ? AllowWriteBack === null || AllowWriteBack === void 0 ? void 0 : AllowWriteBack.value : AllowWriteBack, isRaw: typeof AllowWriteBack === "object" && "isRaw" in AllowWriteBack && AllowWriteBack.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_position", id: typeof _position === "object" && "id" in _position ? _position === null || _position === void 0 ? void 0 : _position.id : undefined, value: typeof _position === "object" && "value" in _position ? _position === null || _position === void 0 ? void 0 : _position.value : _position, isRaw: typeof _position === "object" && "isRaw" in _position && _position.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_rotation", id: typeof _rotation === "object" && "id" in _rotation ? _rotation === null || _rotation === void 0 ? void 0 : _rotation.id : undefined, value: typeof _rotation === "object" && "value" in _rotation ? _rotation === null || _rotation === void 0 ? void 0 : _rotation.value : _rotation, isRaw: typeof _rotation === "object" && "isRaw" in _rotation && _rotation.isRaw ? true : undefined })] })));
}
exports.MirrorTransform = MirrorTransform;
;