neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 7.75 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.PositionAtUser = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function PositionAtUser(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TargetUser = props.TargetUser, PositionAtLocalUser = props.PositionAtLocalUser, TargetPositionOffset = props.TargetPositionOffset, TargetRotationOffset = props.TargetRotationOffset, PositionOffset = props.PositionOffset, RotationOffset = props.RotationOffset, PositionSource = props.PositionSource, RotationSource = props.RotationSource, PositionDrive = props.PositionDrive, RotationDrive = props.RotationDrive;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.PositionAtUser", 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.User]", name: "TargetUser", id: typeof TargetUser === "object" && "id" in TargetUser ? TargetUser === null || TargetUser === void 0 ? void 0 : TargetUser.id : undefined, value: typeof TargetUser === "object" && "value" in TargetUser ? TargetUser === null || TargetUser === void 0 ? void 0 : TargetUser.value : TargetUser, isRaw: typeof TargetUser === "object" && "isRaw" in TargetUser && TargetUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "PositionAtLocalUser", id: typeof PositionAtLocalUser === "object" && "id" in PositionAtLocalUser ? PositionAtLocalUser === null || PositionAtLocalUser === void 0 ? void 0 : PositionAtLocalUser.id : undefined, value: typeof PositionAtLocalUser === "object" && "value" in PositionAtLocalUser ? PositionAtLocalUser === null || PositionAtLocalUser === void 0 ? void 0 : PositionAtLocalUser.value : PositionAtLocalUser, isRaw: typeof PositionAtLocalUser === "object" && "isRaw" in PositionAtLocalUser && PositionAtLocalUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "TargetPositionOffset", id: typeof TargetPositionOffset === "object" && "id" in TargetPositionOffset ? TargetPositionOffset === null || TargetPositionOffset === void 0 ? void 0 : TargetPositionOffset.id : undefined, value: typeof TargetPositionOffset === "object" && "value" in TargetPositionOffset ? TargetPositionOffset === null || TargetPositionOffset === void 0 ? void 0 : TargetPositionOffset.value : TargetPositionOffset, isRaw: typeof TargetPositionOffset === "object" && "isRaw" in TargetPositionOffset && TargetPositionOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "TargetRotationOffset", id: typeof TargetRotationOffset === "object" && "id" in TargetRotationOffset ? TargetRotationOffset === null || TargetRotationOffset === void 0 ? void 0 : TargetRotationOffset.id : undefined, value: typeof TargetRotationOffset === "object" && "value" in TargetRotationOffset ? TargetRotationOffset === null || TargetRotationOffset === void 0 ? void 0 : TargetRotationOffset.value : TargetRotationOffset, isRaw: typeof TargetRotationOffset === "object" && "isRaw" in TargetRotationOffset && TargetRotationOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "PositionOffset", id: typeof PositionOffset === "object" && "id" in PositionOffset ? PositionOffset === null || PositionOffset === void 0 ? void 0 : PositionOffset.id : undefined, value: typeof PositionOffset === "object" && "value" in PositionOffset ? PositionOffset === null || PositionOffset === void 0 ? void 0 : PositionOffset.value : PositionOffset, isRaw: typeof PositionOffset === "object" && "isRaw" in PositionOffset && PositionOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "RotationOffset", id: typeof RotationOffset === "object" && "id" in RotationOffset ? RotationOffset === null || RotationOffset === void 0 ? void 0 : RotationOffset.id : undefined, value: typeof RotationOffset === "object" && "value" in RotationOffset ? RotationOffset === null || RotationOffset === void 0 ? void 0 : RotationOffset.value : RotationOffset, isRaw: typeof RotationOffset === "object" && "isRaw" in RotationOffset && RotationOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.UserRoot+UserNode]", name: "PositionSource", id: typeof PositionSource === "object" && "id" in PositionSource ? PositionSource === null || PositionSource === void 0 ? void 0 : PositionSource.id : undefined, value: typeof PositionSource === "object" && "value" in PositionSource ? PositionSource === null || PositionSource === void 0 ? void 0 : PositionSource.value : PositionSource, isRaw: typeof PositionSource === "object" && "isRaw" in PositionSource && PositionSource.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.UserRoot+UserNode]", name: "RotationSource", id: typeof RotationSource === "object" && "id" in RotationSource ? RotationSource === null || RotationSource === void 0 ? void 0 : RotationSource.id : undefined, value: typeof RotationSource === "object" && "value" in RotationSource ? RotationSource === null || RotationSource === void 0 ? void 0 : RotationSource.value : RotationSource, isRaw: typeof RotationSource === "object" && "isRaw" in RotationSource && RotationSource.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "PositionDrive", id: typeof PositionDrive === "object" && "id" in PositionDrive ? PositionDrive === null || PositionDrive === void 0 ? void 0 : PositionDrive.id : undefined, value: typeof PositionDrive === "object" && "value" in PositionDrive ? PositionDrive === null || PositionDrive === void 0 ? void 0 : PositionDrive.value : PositionDrive, isRaw: typeof PositionDrive === "object" && "isRaw" in PositionDrive && PositionDrive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "RotationDrive", id: typeof RotationDrive === "object" && "id" in RotationDrive ? RotationDrive === null || RotationDrive === void 0 ? void 0 : RotationDrive.id : undefined, value: typeof RotationDrive === "object" && "value" in RotationDrive ? RotationDrive === null || RotationDrive === void 0 ? void 0 : RotationDrive.value : RotationDrive, isRaw: typeof RotationDrive === "object" && "isRaw" in RotationDrive && RotationDrive.isRaw ? true : undefined })] })));
}
exports.PositionAtUser = PositionAtUser;
;