neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 6.45 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.BoxEmitter = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../../core");
function BoxEmitter(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, System = props.System, Rate = props.Rate, BurstOnActivatedMin = props.BurstOnActivatedMin, BurstOnActivatedMax = props.BurstOnActivatedMax, BurstTimePeriod = props.BurstTimePeriod, Bursts = props.Bursts, RandomDirection = props.RandomDirection, Size = props.Size, Direction = props.Direction;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.BoxEmitter", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { 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.ParticleSystem]", name: "System", id: typeof System === "object" && "id" in System ? System === null || System === void 0 ? void 0 : System.id : undefined, value: typeof System === "object" && "value" in System ? System === null || System === void 0 ? void 0 : System.value : System, isRaw: typeof System === "object" && "isRaw" in System && System.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Rate", id: typeof Rate === "object" && "id" in Rate ? Rate === null || Rate === void 0 ? void 0 : Rate.id : undefined, value: typeof Rate === "object" && "value" in Rate ? Rate === null || Rate === void 0 ? void 0 : Rate.value : Rate, isRaw: typeof Rate === "object" && "isRaw" in Rate && Rate.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "BurstOnActivatedMin", id: typeof BurstOnActivatedMin === "object" && "id" in BurstOnActivatedMin ? BurstOnActivatedMin === null || BurstOnActivatedMin === void 0 ? void 0 : BurstOnActivatedMin.id : undefined, value: typeof BurstOnActivatedMin === "object" && "value" in BurstOnActivatedMin ? BurstOnActivatedMin === null || BurstOnActivatedMin === void 0 ? void 0 : BurstOnActivatedMin.value : BurstOnActivatedMin, isRaw: typeof BurstOnActivatedMin === "object" && "isRaw" in BurstOnActivatedMin && BurstOnActivatedMin.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "BurstOnActivatedMax", id: typeof BurstOnActivatedMax === "object" && "id" in BurstOnActivatedMax ? BurstOnActivatedMax === null || BurstOnActivatedMax === void 0 ? void 0 : BurstOnActivatedMax.id : undefined, value: typeof BurstOnActivatedMax === "object" && "value" in BurstOnActivatedMax ? BurstOnActivatedMax === null || BurstOnActivatedMax === void 0 ? void 0 : BurstOnActivatedMax.value : BurstOnActivatedMax, isRaw: typeof BurstOnActivatedMax === "object" && "isRaw" in BurstOnActivatedMax && BurstOnActivatedMax.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Double]", name: "BurstTimePeriod", id: typeof BurstTimePeriod === "object" && "id" in BurstTimePeriod ? BurstTimePeriod === null || BurstTimePeriod === void 0 ? void 0 : BurstTimePeriod.id : undefined, value: typeof BurstTimePeriod === "object" && "value" in BurstTimePeriod ? BurstTimePeriod === null || BurstTimePeriod === void 0 ? void 0 : BurstTimePeriod.value : BurstTimePeriod, isRaw: typeof BurstTimePeriod === "object" && "isRaw" in BurstTimePeriod && BurstTimePeriod.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncLinear`1[FrooxEngine.ParticleBurst]", name: "Bursts", id: typeof Bursts === "object" && "id" in Bursts ? Bursts === null || Bursts === void 0 ? void 0 : Bursts.id : undefined, value: typeof Bursts === "object" && "value" in Bursts ? Bursts === null || Bursts === void 0 ? void 0 : Bursts.value : Bursts, isRaw: typeof Bursts === "object" && "isRaw" in Bursts && Bursts.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "RandomDirection", id: typeof RandomDirection === "object" && "id" in RandomDirection ? RandomDirection === null || RandomDirection === void 0 ? void 0 : RandomDirection.id : undefined, value: typeof RandomDirection === "object" && "value" in RandomDirection ? RandomDirection === null || RandomDirection === void 0 ? void 0 : RandomDirection.value : RandomDirection, isRaw: typeof RandomDirection === "object" && "isRaw" in RandomDirection && RandomDirection.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Size", id: typeof Size === "object" && "id" in Size ? Size === null || Size === void 0 ? void 0 : Size.id : undefined, value: typeof Size === "object" && "value" in Size ? Size === null || Size === void 0 ? void 0 : Size.value : Size, isRaw: typeof Size === "object" && "isRaw" in Size && Size.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 })] })));
}
exports.BoxEmitter = BoxEmitter;
;