neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 5.91 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.SimpleKeyboardMovement = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function SimpleKeyboardMovement(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, UserRoot = props.UserRoot, RelativeToHead = props.RelativeToHead, RelativeTo = props.RelativeTo, VerticalOnly = props.VerticalOnly, SlowSpeed = props.SlowSpeed, Speed = props.Speed, FastSpeed = props.FastSpeed, AllowPitchRotation = props.AllowPitchRotation;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.SimpleKeyboardMovement", 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.UserRoot]", name: "UserRoot", id: typeof UserRoot === "object" && "id" in UserRoot ? UserRoot === null || UserRoot === void 0 ? void 0 : UserRoot.id : undefined, value: typeof UserRoot === "object" && "value" in UserRoot ? UserRoot === null || UserRoot === void 0 ? void 0 : UserRoot.value : UserRoot, isRaw: typeof UserRoot === "object" && "isRaw" in UserRoot && UserRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "RelativeToHead", id: typeof RelativeToHead === "object" && "id" in RelativeToHead ? RelativeToHead === null || RelativeToHead === void 0 ? void 0 : RelativeToHead.id : undefined, value: typeof RelativeToHead === "object" && "value" in RelativeToHead ? RelativeToHead === null || RelativeToHead === void 0 ? void 0 : RelativeToHead.value : RelativeToHead, isRaw: typeof RelativeToHead === "object" && "isRaw" in RelativeToHead && RelativeToHead.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "RelativeTo", id: typeof RelativeTo === "object" && "id" in RelativeTo ? RelativeTo === null || RelativeTo === void 0 ? void 0 : RelativeTo.id : undefined, value: typeof RelativeTo === "object" && "value" in RelativeTo ? RelativeTo === null || RelativeTo === void 0 ? void 0 : RelativeTo.value : RelativeTo, isRaw: typeof RelativeTo === "object" && "isRaw" in RelativeTo && RelativeTo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "VerticalOnly", id: typeof VerticalOnly === "object" && "id" in VerticalOnly ? VerticalOnly === null || VerticalOnly === void 0 ? void 0 : VerticalOnly.id : undefined, value: typeof VerticalOnly === "object" && "value" in VerticalOnly ? VerticalOnly === null || VerticalOnly === void 0 ? void 0 : VerticalOnly.value : VerticalOnly, isRaw: typeof VerticalOnly === "object" && "isRaw" in VerticalOnly && VerticalOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SlowSpeed", id: typeof SlowSpeed === "object" && "id" in SlowSpeed ? SlowSpeed === null || SlowSpeed === void 0 ? void 0 : SlowSpeed.id : undefined, value: typeof SlowSpeed === "object" && "value" in SlowSpeed ? SlowSpeed === null || SlowSpeed === void 0 ? void 0 : SlowSpeed.value : SlowSpeed, isRaw: typeof SlowSpeed === "object" && "isRaw" in SlowSpeed && SlowSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`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.Sync`1[System.Single]", name: "FastSpeed", id: typeof FastSpeed === "object" && "id" in FastSpeed ? FastSpeed === null || FastSpeed === void 0 ? void 0 : FastSpeed.id : undefined, value: typeof FastSpeed === "object" && "value" in FastSpeed ? FastSpeed === null || FastSpeed === void 0 ? void 0 : FastSpeed.value : FastSpeed, isRaw: typeof FastSpeed === "object" && "isRaw" in FastSpeed && FastSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AllowPitchRotation", id: typeof AllowPitchRotation === "object" && "id" in AllowPitchRotation ? AllowPitchRotation === null || AllowPitchRotation === void 0 ? void 0 : AllowPitchRotation.id : undefined, value: typeof AllowPitchRotation === "object" && "value" in AllowPitchRotation ? AllowPitchRotation === null || AllowPitchRotation === void 0 ? void 0 : AllowPitchRotation.value : AllowPitchRotation, isRaw: typeof AllowPitchRotation === "object" && "isRaw" in AllowPitchRotation && AllowPitchRotation.isRaw ? true : undefined })] })));
}
exports.SimpleKeyboardMovement = SimpleKeyboardMovement;
;