neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 12.1 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.CharacterForceField = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function CharacterForceField(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TriggersOnly = props.TriggersOnly, Force = props.Force, ForceMode = props.ForceMode, ForceSpace = props.ForceSpace, RadialForceRadius = props.RadialForceRadius, ForceSlotSpace = props.ForceSlotSpace, MinActivationVelocity = props.MinActivationVelocity, MaxForceVelocity = props.MaxForceVelocity, HoldJumpMaxForceVelocity = props.HoldJumpMaxForceVelocity, PreseveDirectionAcrossPlane = props.PreseveDirectionAcrossPlane, IgnoreParentUser = props.IgnoreParentUser, NoJumpMultiplier = props.NoJumpMultiplier, HoldJumpMultiplier = props.HoldJumpMultiplier, MaxCharacterVelocity = props.MaxCharacterVelocity, MinCharacterVelocity = props.MinCharacterVelocity, CharacterVelocityDampeningSpeed = props.CharacterVelocityDampeningSpeed;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.CharacterForceField", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 2 }, { 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.Sync`1[System.Boolean]", name: "TriggersOnly", id: typeof TriggersOnly === "object" && "id" in TriggersOnly ? TriggersOnly === null || TriggersOnly === void 0 ? void 0 : TriggersOnly.id : undefined, value: typeof TriggersOnly === "object" && "value" in TriggersOnly ? TriggersOnly === null || TriggersOnly === void 0 ? void 0 : TriggersOnly.value : TriggersOnly, isRaw: typeof TriggersOnly === "object" && "isRaw" in TriggersOnly && TriggersOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Force", id: typeof Force === "object" && "id" in Force ? Force === null || Force === void 0 ? void 0 : Force.id : undefined, value: typeof Force === "object" && "value" in Force ? Force === null || Force === void 0 ? void 0 : Force.value : Force, isRaw: typeof Force === "object" && "isRaw" in Force && Force.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.CharacterForceField+Mode]", name: "ForceMode", id: typeof ForceMode === "object" && "id" in ForceMode ? ForceMode === null || ForceMode === void 0 ? void 0 : ForceMode.id : undefined, value: typeof ForceMode === "object" && "value" in ForceMode ? ForceMode === null || ForceMode === void 0 ? void 0 : ForceMode.value : ForceMode, isRaw: typeof ForceMode === "object" && "isRaw" in ForceMode && ForceMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.CharacterForceField+Space]", name: "ForceSpace", id: typeof ForceSpace === "object" && "id" in ForceSpace ? ForceSpace === null || ForceSpace === void 0 ? void 0 : ForceSpace.id : undefined, value: typeof ForceSpace === "object" && "value" in ForceSpace ? ForceSpace === null || ForceSpace === void 0 ? void 0 : ForceSpace.value : ForceSpace, isRaw: typeof ForceSpace === "object" && "isRaw" in ForceSpace && ForceSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "RadialForceRadius", id: typeof RadialForceRadius === "object" && "id" in RadialForceRadius ? RadialForceRadius === null || RadialForceRadius === void 0 ? void 0 : RadialForceRadius.id : undefined, value: typeof RadialForceRadius === "object" && "value" in RadialForceRadius ? RadialForceRadius === null || RadialForceRadius === void 0 ? void 0 : RadialForceRadius.value : RadialForceRadius, isRaw: typeof RadialForceRadius === "object" && "isRaw" in RadialForceRadius && RadialForceRadius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RootSpace", name: "ForceSlotSpace", id: typeof ForceSlotSpace === "object" && "id" in ForceSlotSpace ? ForceSlotSpace === null || ForceSlotSpace === void 0 ? void 0 : ForceSlotSpace.id : undefined, value: typeof ForceSlotSpace === "object" && "value" in ForceSlotSpace ? ForceSlotSpace === null || ForceSlotSpace === void 0 ? void 0 : ForceSlotSpace.value : ForceSlotSpace, isRaw: typeof ForceSlotSpace === "object" && "isRaw" in ForceSlotSpace && ForceSlotSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinActivationVelocity", id: typeof MinActivationVelocity === "object" && "id" in MinActivationVelocity ? MinActivationVelocity === null || MinActivationVelocity === void 0 ? void 0 : MinActivationVelocity.id : undefined, value: typeof MinActivationVelocity === "object" && "value" in MinActivationVelocity ? MinActivationVelocity === null || MinActivationVelocity === void 0 ? void 0 : MinActivationVelocity.value : MinActivationVelocity, isRaw: typeof MinActivationVelocity === "object" && "isRaw" in MinActivationVelocity && MinActivationVelocity.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxForceVelocity", id: typeof MaxForceVelocity === "object" && "id" in MaxForceVelocity ? MaxForceVelocity === null || MaxForceVelocity === void 0 ? void 0 : MaxForceVelocity.id : undefined, value: typeof MaxForceVelocity === "object" && "value" in MaxForceVelocity ? MaxForceVelocity === null || MaxForceVelocity === void 0 ? void 0 : MaxForceVelocity.value : MaxForceVelocity, isRaw: typeof MaxForceVelocity === "object" && "isRaw" in MaxForceVelocity && MaxForceVelocity.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HoldJumpMaxForceVelocity", id: typeof HoldJumpMaxForceVelocity === "object" && "id" in HoldJumpMaxForceVelocity ? HoldJumpMaxForceVelocity === null || HoldJumpMaxForceVelocity === void 0 ? void 0 : HoldJumpMaxForceVelocity.id : undefined, value: typeof HoldJumpMaxForceVelocity === "object" && "value" in HoldJumpMaxForceVelocity ? HoldJumpMaxForceVelocity === null || HoldJumpMaxForceVelocity === void 0 ? void 0 : HoldJumpMaxForceVelocity.value : HoldJumpMaxForceVelocity, isRaw: typeof HoldJumpMaxForceVelocity === "object" && "isRaw" in HoldJumpMaxForceVelocity && HoldJumpMaxForceVelocity.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "PreseveDirectionAcrossPlane", id: typeof PreseveDirectionAcrossPlane === "object" && "id" in PreseveDirectionAcrossPlane ? PreseveDirectionAcrossPlane === null || PreseveDirectionAcrossPlane === void 0 ? void 0 : PreseveDirectionAcrossPlane.id : undefined, value: typeof PreseveDirectionAcrossPlane === "object" && "value" in PreseveDirectionAcrossPlane ? PreseveDirectionAcrossPlane === null || PreseveDirectionAcrossPlane === void 0 ? void 0 : PreseveDirectionAcrossPlane.value : PreseveDirectionAcrossPlane, isRaw: typeof PreseveDirectionAcrossPlane === "object" && "isRaw" in PreseveDirectionAcrossPlane && PreseveDirectionAcrossPlane.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IgnoreParentUser", id: typeof IgnoreParentUser === "object" && "id" in IgnoreParentUser ? IgnoreParentUser === null || IgnoreParentUser === void 0 ? void 0 : IgnoreParentUser.id : undefined, value: typeof IgnoreParentUser === "object" && "value" in IgnoreParentUser ? IgnoreParentUser === null || IgnoreParentUser === void 0 ? void 0 : IgnoreParentUser.value : IgnoreParentUser, isRaw: typeof IgnoreParentUser === "object" && "isRaw" in IgnoreParentUser && IgnoreParentUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "NoJumpMultiplier", id: typeof NoJumpMultiplier === "object" && "id" in NoJumpMultiplier ? NoJumpMultiplier === null || NoJumpMultiplier === void 0 ? void 0 : NoJumpMultiplier.id : undefined, value: typeof NoJumpMultiplier === "object" && "value" in NoJumpMultiplier ? NoJumpMultiplier === null || NoJumpMultiplier === void 0 ? void 0 : NoJumpMultiplier.value : NoJumpMultiplier, isRaw: typeof NoJumpMultiplier === "object" && "isRaw" in NoJumpMultiplier && NoJumpMultiplier.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HoldJumpMultiplier", id: typeof HoldJumpMultiplier === "object" && "id" in HoldJumpMultiplier ? HoldJumpMultiplier === null || HoldJumpMultiplier === void 0 ? void 0 : HoldJumpMultiplier.id : undefined, value: typeof HoldJumpMultiplier === "object" && "value" in HoldJumpMultiplier ? HoldJumpMultiplier === null || HoldJumpMultiplier === void 0 ? void 0 : HoldJumpMultiplier.value : HoldJumpMultiplier, isRaw: typeof HoldJumpMultiplier === "object" && "isRaw" in HoldJumpMultiplier && HoldJumpMultiplier.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxCharacterVelocity", id: typeof MaxCharacterVelocity === "object" && "id" in MaxCharacterVelocity ? MaxCharacterVelocity === null || MaxCharacterVelocity === void 0 ? void 0 : MaxCharacterVelocity.id : undefined, value: typeof MaxCharacterVelocity === "object" && "value" in MaxCharacterVelocity ? MaxCharacterVelocity === null || MaxCharacterVelocity === void 0 ? void 0 : MaxCharacterVelocity.value : MaxCharacterVelocity, isRaw: typeof MaxCharacterVelocity === "object" && "isRaw" in MaxCharacterVelocity && MaxCharacterVelocity.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinCharacterVelocity", id: typeof MinCharacterVelocity === "object" && "id" in MinCharacterVelocity ? MinCharacterVelocity === null || MinCharacterVelocity === void 0 ? void 0 : MinCharacterVelocity.id : undefined, value: typeof MinCharacterVelocity === "object" && "value" in MinCharacterVelocity ? MinCharacterVelocity === null || MinCharacterVelocity === void 0 ? void 0 : MinCharacterVelocity.value : MinCharacterVelocity, isRaw: typeof MinCharacterVelocity === "object" && "isRaw" in MinCharacterVelocity && MinCharacterVelocity.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "CharacterVelocityDampeningSpeed", id: typeof CharacterVelocityDampeningSpeed === "object" && "id" in CharacterVelocityDampeningSpeed ? CharacterVelocityDampeningSpeed === null || CharacterVelocityDampeningSpeed === void 0 ? void 0 : CharacterVelocityDampeningSpeed.id : undefined, value: typeof CharacterVelocityDampeningSpeed === "object" && "value" in CharacterVelocityDampeningSpeed ? CharacterVelocityDampeningSpeed === null || CharacterVelocityDampeningSpeed === void 0 ? void 0 : CharacterVelocityDampeningSpeed.value : CharacterVelocityDampeningSpeed, isRaw: typeof CharacterVelocityDampeningSpeed === "object" && "isRaw" in CharacterVelocityDampeningSpeed && CharacterVelocityDampeningSpeed.isRaw ? true : undefined })] })));
}
exports.CharacterForceField = CharacterForceField;
;