neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 9.11 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.LocomotionController = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function LocomotionController(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, ScalingEnabled = props.ScalingEnabled, SupressSources = props.SupressSources, InputSupressSources = props.InputSupressSources, LocomotionModules = props.LocomotionModules, ActiveModuleIndex = props.ActiveModuleIndex, SyncActiveLocomotionModule = props.SyncActiveLocomotionModule, _currentGroundCollider = props._currentGroundCollider, _lastGroundCollider = props._lastGroundCollider, OnInitialized = props.OnInitialized, _parentHierarchy = props._parentHierarchy, _dummyCharacterController = props._dummyCharacterController;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LocomotionController", 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.Sync`1[System.Boolean]", name: "ScalingEnabled", id: typeof ScalingEnabled === "object" && "id" in ScalingEnabled ? ScalingEnabled === null || ScalingEnabled === void 0 ? void 0 : ScalingEnabled.id : undefined, value: typeof ScalingEnabled === "object" && "value" in ScalingEnabled ? ScalingEnabled === null || ScalingEnabled === void 0 ? void 0 : ScalingEnabled.value : ScalingEnabled, isRaw: typeof ScalingEnabled === "object" && "isRaw" in ScalingEnabled && ScalingEnabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRefList`1[FrooxEngine.Component]", name: "SupressSources", id: typeof SupressSources === "object" && "id" in SupressSources ? SupressSources === null || SupressSources === void 0 ? void 0 : SupressSources.id : undefined, value: typeof SupressSources === "object" && "value" in SupressSources ? SupressSources === null || SupressSources === void 0 ? void 0 : SupressSources.value : SupressSources, isRaw: typeof SupressSources === "object" && "isRaw" in SupressSources && SupressSources.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRefList`1[FrooxEngine.Component]", name: "InputSupressSources", id: typeof InputSupressSources === "object" && "id" in InputSupressSources ? InputSupressSources === null || InputSupressSources === void 0 ? void 0 : InputSupressSources.id : undefined, value: typeof InputSupressSources === "object" && "value" in InputSupressSources ? InputSupressSources === null || InputSupressSources === void 0 ? void 0 : InputSupressSources.value : InputSupressSources, isRaw: typeof InputSupressSources === "object" && "isRaw" in InputSupressSources && InputSupressSources.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRefList`1[FrooxEngine.ILocomotionModule]", name: "LocomotionModules", id: typeof LocomotionModules === "object" && "id" in LocomotionModules ? LocomotionModules === null || LocomotionModules === void 0 ? void 0 : LocomotionModules.id : undefined, value: typeof LocomotionModules === "object" && "value" in LocomotionModules ? LocomotionModules === null || LocomotionModules === void 0 ? void 0 : LocomotionModules.value : LocomotionModules, isRaw: typeof LocomotionModules === "object" && "isRaw" in LocomotionModules && LocomotionModules.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "ActiveModuleIndex", id: typeof ActiveModuleIndex === "object" && "id" in ActiveModuleIndex ? ActiveModuleIndex === null || ActiveModuleIndex === void 0 ? void 0 : ActiveModuleIndex.id : undefined, value: typeof ActiveModuleIndex === "object" && "value" in ActiveModuleIndex ? ActiveModuleIndex === null || ActiveModuleIndex === void 0 ? void 0 : ActiveModuleIndex.value : ActiveModuleIndex, isRaw: typeof ActiveModuleIndex === "object" && "isRaw" in ActiveModuleIndex && ActiveModuleIndex.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SyncActiveLocomotionModule", id: typeof SyncActiveLocomotionModule === "object" && "id" in SyncActiveLocomotionModule ? SyncActiveLocomotionModule === null || SyncActiveLocomotionModule === void 0 ? void 0 : SyncActiveLocomotionModule.id : undefined, value: typeof SyncActiveLocomotionModule === "object" && "value" in SyncActiveLocomotionModule ? SyncActiveLocomotionModule === null || SyncActiveLocomotionModule === void 0 ? void 0 : SyncActiveLocomotionModule.value : SyncActiveLocomotionModule, isRaw: typeof SyncActiveLocomotionModule === "object" && "isRaw" in SyncActiveLocomotionModule && SyncActiveLocomotionModule.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ICollider]", name: "_currentGroundCollider", id: typeof _currentGroundCollider === "object" && "id" in _currentGroundCollider ? _currentGroundCollider === null || _currentGroundCollider === void 0 ? void 0 : _currentGroundCollider.id : undefined, value: typeof _currentGroundCollider === "object" && "value" in _currentGroundCollider ? _currentGroundCollider === null || _currentGroundCollider === void 0 ? void 0 : _currentGroundCollider.value : _currentGroundCollider, isRaw: typeof _currentGroundCollider === "object" && "isRaw" in _currentGroundCollider && _currentGroundCollider.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ICollider]", name: "_lastGroundCollider", id: typeof _lastGroundCollider === "object" && "id" in _lastGroundCollider ? _lastGroundCollider === null || _lastGroundCollider === void 0 ? void 0 : _lastGroundCollider.id : undefined, value: typeof _lastGroundCollider === "object" && "value" in _lastGroundCollider ? _lastGroundCollider === null || _lastGroundCollider === void 0 ? void 0 : _lastGroundCollider.value : _lastGroundCollider, isRaw: typeof _lastGroundCollider === "object" && "isRaw" in _lastGroundCollider && _lastGroundCollider.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[System.Action`1[FrooxEngine.LocomotionController]]", name: "OnInitialized", id: typeof OnInitialized === "object" && "id" in OnInitialized ? OnInitialized === null || OnInitialized === void 0 ? void 0 : OnInitialized.id : undefined, value: typeof OnInitialized === "object" && "value" in OnInitialized ? OnInitialized === null || OnInitialized === void 0 ? void 0 : OnInitialized.value : OnInitialized, isRaw: typeof OnInitialized === "object" && "isRaw" in OnInitialized && OnInitialized.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRefList`1[FrooxEngine.Slot]", name: "_parentHierarchy", id: typeof _parentHierarchy === "object" && "id" in _parentHierarchy ? _parentHierarchy === null || _parentHierarchy === void 0 ? void 0 : _parentHierarchy.id : undefined, value: typeof _parentHierarchy === "object" && "value" in _parentHierarchy ? _parentHierarchy === null || _parentHierarchy === void 0 ? void 0 : _parentHierarchy.value : _parentHierarchy, isRaw: typeof _parentHierarchy === "object" && "isRaw" in _parentHierarchy && _parentHierarchy.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.CharacterController]", name: "_dummyCharacterController", id: typeof _dummyCharacterController === "object" && "id" in _dummyCharacterController ? _dummyCharacterController === null || _dummyCharacterController === void 0 ? void 0 : _dummyCharacterController.id : undefined, value: typeof _dummyCharacterController === "object" && "value" in _dummyCharacterController ? _dummyCharacterController === null || _dummyCharacterController === void 0 ? void 0 : _dummyCharacterController.value : _dummyCharacterController, isRaw: typeof _dummyCharacterController === "object" && "isRaw" in _dummyCharacterController && _dummyCharacterController.isRaw ? true : undefined })] })));
}
exports.LocomotionController = LocomotionController;
;