neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 7.03 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.RaycastDriver = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function RaycastDriver(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, IgnoreHierarchy = props.IgnoreHierarchy, FilterDistance = props.FilterDistance, Origin = props.Origin, Offset = props.Offset, Direction = props.Direction, MaxDistance = props.MaxDistance, NoHitDistance = props.NoHitDistance, Filter = props.Filter, _positionDrive = props._positionDrive, _rotationDrive = props._rotationDrive;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.RaycastDriver", 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: "IgnoreHierarchy", id: typeof IgnoreHierarchy === "object" && "id" in IgnoreHierarchy ? IgnoreHierarchy === null || IgnoreHierarchy === void 0 ? void 0 : IgnoreHierarchy.id : undefined, value: typeof IgnoreHierarchy === "object" && "value" in IgnoreHierarchy ? IgnoreHierarchy === null || IgnoreHierarchy === void 0 ? void 0 : IgnoreHierarchy.value : IgnoreHierarchy, isRaw: typeof IgnoreHierarchy === "object" && "isRaw" in IgnoreHierarchy && IgnoreHierarchy.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FilterDistance", id: typeof FilterDistance === "object" && "id" in FilterDistance ? FilterDistance === null || FilterDistance === void 0 ? void 0 : FilterDistance.id : undefined, value: typeof FilterDistance === "object" && "value" in FilterDistance ? FilterDistance === null || FilterDistance === void 0 ? void 0 : FilterDistance.value : FilterDistance, isRaw: typeof FilterDistance === "object" && "isRaw" in FilterDistance && FilterDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "Origin", id: typeof Origin === "object" && "id" in Origin ? Origin === null || Origin === void 0 ? void 0 : Origin.id : undefined, value: typeof Origin === "object" && "value" in Origin ? Origin === null || Origin === void 0 ? void 0 : Origin.value : Origin, isRaw: typeof Origin === "object" && "isRaw" in Origin && Origin.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Offset", id: typeof Offset === "object" && "id" in Offset ? Offset === null || Offset === void 0 ? void 0 : Offset.id : undefined, value: typeof Offset === "object" && "value" in Offset ? Offset === null || Offset === void 0 ? void 0 : Offset.value : Offset, isRaw: typeof Offset === "object" && "isRaw" in Offset && Offset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Direction", id: typeof Direction === "object" && "id" in Direction ? Direction === null || Direction === void 0 ? void 0 : Direction.id : undefined, value: typeof Direction === "object" && "value" in Direction ? Direction === null || Direction === void 0 ? void 0 : Direction.value : Direction, isRaw: typeof Direction === "object" && "isRaw" in Direction && Direction.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxDistance", id: typeof MaxDistance === "object" && "id" in MaxDistance ? MaxDistance === null || MaxDistance === void 0 ? void 0 : MaxDistance.id : undefined, value: typeof MaxDistance === "object" && "value" in MaxDistance ? MaxDistance === null || MaxDistance === void 0 ? void 0 : MaxDistance.value : MaxDistance, isRaw: typeof MaxDistance === "object" && "isRaw" in MaxDistance && MaxDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "NoHitDistance", id: typeof NoHitDistance === "object" && "id" in NoHitDistance ? NoHitDistance === null || NoHitDistance === void 0 ? void 0 : NoHitDistance.id : undefined, value: typeof NoHitDistance === "object" && "value" in NoHitDistance ? NoHitDistance === null || NoHitDistance === void 0 ? void 0 : NoHitDistance.value : NoHitDistance, isRaw: typeof NoHitDistance === "object" && "isRaw" in NoHitDistance && NoHitDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[System.Func`2[FrooxEngine.ICollider,System.Boolean]]", name: "Filter", id: typeof Filter === "object" && "id" in Filter ? Filter === null || Filter === void 0 ? void 0 : Filter.id : undefined, value: typeof Filter === "object" && "value" in Filter ? Filter === null || Filter === void 0 ? void 0 : Filter.value : Filter, isRaw: typeof Filter === "object" && "isRaw" in Filter && Filter.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.RaycastDriver = RaycastDriver;
;