neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 9.07 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.ConeEmitter = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../../core");
function ConeEmitter(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, BaseRadius = props.BaseRadius, Height = props.Height, EmitFromShell = props.EmitFromShell, RandomDirection = props.RandomDirection, ForceDirection = props.ForceDirection, ForcedDirection = props.ForcedDirection, DirectionReferencePoint = props.DirectionReferencePoint;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ConeEmitter", 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: "BaseRadius", id: typeof BaseRadius === "object" && "id" in BaseRadius ? BaseRadius === null || BaseRadius === void 0 ? void 0 : BaseRadius.id : undefined, value: typeof BaseRadius === "object" && "value" in BaseRadius ? BaseRadius === null || BaseRadius === void 0 ? void 0 : BaseRadius.value : BaseRadius, isRaw: typeof BaseRadius === "object" && "isRaw" in BaseRadius && BaseRadius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Height", id: typeof Height === "object" && "id" in Height ? Height === null || Height === void 0 ? void 0 : Height.id : undefined, value: typeof Height === "object" && "value" in Height ? Height === null || Height === void 0 ? void 0 : Height.value : Height, isRaw: typeof Height === "object" && "isRaw" in Height && Height.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "EmitFromShell", id: typeof EmitFromShell === "object" && "id" in EmitFromShell ? EmitFromShell === null || EmitFromShell === void 0 ? void 0 : EmitFromShell.id : undefined, value: typeof EmitFromShell === "object" && "value" in EmitFromShell ? EmitFromShell === null || EmitFromShell === void 0 ? void 0 : EmitFromShell.value : EmitFromShell, isRaw: typeof EmitFromShell === "object" && "isRaw" in EmitFromShell && EmitFromShell.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[System.Boolean]", name: "ForceDirection", id: typeof ForceDirection === "object" && "id" in ForceDirection ? ForceDirection === null || ForceDirection === void 0 ? void 0 : ForceDirection.id : undefined, value: typeof ForceDirection === "object" && "value" in ForceDirection ? ForceDirection === null || ForceDirection === void 0 ? void 0 : ForceDirection.value : ForceDirection, isRaw: typeof ForceDirection === "object" && "isRaw" in ForceDirection && ForceDirection.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "ForcedDirection", id: typeof ForcedDirection === "object" && "id" in ForcedDirection ? ForcedDirection === null || ForcedDirection === void 0 ? void 0 : ForcedDirection.id : undefined, value: typeof ForcedDirection === "object" && "value" in ForcedDirection ? ForcedDirection === null || ForcedDirection === void 0 ? void 0 : ForcedDirection.value : ForcedDirection, isRaw: typeof ForcedDirection === "object" && "isRaw" in ForcedDirection && ForcedDirection.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "DirectionReferencePoint", id: typeof DirectionReferencePoint === "object" && "id" in DirectionReferencePoint ? DirectionReferencePoint === null || DirectionReferencePoint === void 0 ? void 0 : DirectionReferencePoint.id : undefined, value: typeof DirectionReferencePoint === "object" && "value" in DirectionReferencePoint ? DirectionReferencePoint === null || DirectionReferencePoint === void 0 ? void 0 : DirectionReferencePoint.value : DirectionReferencePoint, isRaw: typeof DirectionReferencePoint === "object" && "isRaw" in DirectionReferencePoint && DirectionReferencePoint.isRaw ? true : undefined })] })));
}
exports.ConeEmitter = ConeEmitter;
;