neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 11.4 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.MicroworldController = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function MicroworldController(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, BaseColor = props.BaseColor, Seed = props.Seed, AnimationSpeed = props.AnimationSpeed, Exp = props.Exp, HueDeviation = props.HueDeviation, SaturationDeviation = props.SaturationDeviation, ValueDeviation = props.ValueDeviation, BigParticlesMinColor = props.BigParticlesMinColor, BigParticlesMaxColor = props.BigParticlesMaxColor, SmallParticlesMinColor = props.SmallParticlesMinColor, SmallParticlesMaxColor = props.SmallParticlesMaxColor, DarkParticlesMinColor = props.DarkParticlesMinColor, DarkParticlesMaxColor = props.DarkParticlesMaxColor, GroundNearColor = props.GroundNearColor, GroundFarColor = props.GroundFarColor, Skybox = props.Skybox;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.MicroworldController", 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[BaseX.color]", name: "BaseColor", id: typeof BaseColor === "object" && "id" in BaseColor ? BaseColor === null || BaseColor === void 0 ? void 0 : BaseColor.id : undefined, value: typeof BaseColor === "object" && "value" in BaseColor ? BaseColor === null || BaseColor === void 0 ? void 0 : BaseColor.value : BaseColor, isRaw: typeof BaseColor === "object" && "isRaw" in BaseColor && BaseColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "Seed", id: typeof Seed === "object" && "id" in Seed ? Seed === null || Seed === void 0 ? void 0 : Seed.id : undefined, value: typeof Seed === "object" && "value" in Seed ? Seed === null || Seed === void 0 ? void 0 : Seed.value : Seed, isRaw: typeof Seed === "object" && "isRaw" in Seed && Seed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "AnimationSpeed", id: typeof AnimationSpeed === "object" && "id" in AnimationSpeed ? AnimationSpeed === null || AnimationSpeed === void 0 ? void 0 : AnimationSpeed.id : undefined, value: typeof AnimationSpeed === "object" && "value" in AnimationSpeed ? AnimationSpeed === null || AnimationSpeed === void 0 ? void 0 : AnimationSpeed.value : AnimationSpeed, isRaw: typeof AnimationSpeed === "object" && "isRaw" in AnimationSpeed && AnimationSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Exp", id: typeof Exp === "object" && "id" in Exp ? Exp === null || Exp === void 0 ? void 0 : Exp.id : undefined, value: typeof Exp === "object" && "value" in Exp ? Exp === null || Exp === void 0 ? void 0 : Exp.value : Exp, isRaw: typeof Exp === "object" && "isRaw" in Exp && Exp.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HueDeviation", id: typeof HueDeviation === "object" && "id" in HueDeviation ? HueDeviation === null || HueDeviation === void 0 ? void 0 : HueDeviation.id : undefined, value: typeof HueDeviation === "object" && "value" in HueDeviation ? HueDeviation === null || HueDeviation === void 0 ? void 0 : HueDeviation.value : HueDeviation, isRaw: typeof HueDeviation === "object" && "isRaw" in HueDeviation && HueDeviation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SaturationDeviation", id: typeof SaturationDeviation === "object" && "id" in SaturationDeviation ? SaturationDeviation === null || SaturationDeviation === void 0 ? void 0 : SaturationDeviation.id : undefined, value: typeof SaturationDeviation === "object" && "value" in SaturationDeviation ? SaturationDeviation === null || SaturationDeviation === void 0 ? void 0 : SaturationDeviation.value : SaturationDeviation, isRaw: typeof SaturationDeviation === "object" && "isRaw" in SaturationDeviation && SaturationDeviation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ValueDeviation", id: typeof ValueDeviation === "object" && "id" in ValueDeviation ? ValueDeviation === null || ValueDeviation === void 0 ? void 0 : ValueDeviation.id : undefined, value: typeof ValueDeviation === "object" && "value" in ValueDeviation ? ValueDeviation === null || ValueDeviation === void 0 ? void 0 : ValueDeviation.value : ValueDeviation, isRaw: typeof ValueDeviation === "object" && "isRaw" in ValueDeviation && ValueDeviation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "BigParticlesMinColor", id: typeof BigParticlesMinColor === "object" && "id" in BigParticlesMinColor ? BigParticlesMinColor === null || BigParticlesMinColor === void 0 ? void 0 : BigParticlesMinColor.id : undefined, value: typeof BigParticlesMinColor === "object" && "value" in BigParticlesMinColor ? BigParticlesMinColor === null || BigParticlesMinColor === void 0 ? void 0 : BigParticlesMinColor.value : BigParticlesMinColor, isRaw: typeof BigParticlesMinColor === "object" && "isRaw" in BigParticlesMinColor && BigParticlesMinColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "BigParticlesMaxColor", id: typeof BigParticlesMaxColor === "object" && "id" in BigParticlesMaxColor ? BigParticlesMaxColor === null || BigParticlesMaxColor === void 0 ? void 0 : BigParticlesMaxColor.id : undefined, value: typeof BigParticlesMaxColor === "object" && "value" in BigParticlesMaxColor ? BigParticlesMaxColor === null || BigParticlesMaxColor === void 0 ? void 0 : BigParticlesMaxColor.value : BigParticlesMaxColor, isRaw: typeof BigParticlesMaxColor === "object" && "isRaw" in BigParticlesMaxColor && BigParticlesMaxColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "SmallParticlesMinColor", id: typeof SmallParticlesMinColor === "object" && "id" in SmallParticlesMinColor ? SmallParticlesMinColor === null || SmallParticlesMinColor === void 0 ? void 0 : SmallParticlesMinColor.id : undefined, value: typeof SmallParticlesMinColor === "object" && "value" in SmallParticlesMinColor ? SmallParticlesMinColor === null || SmallParticlesMinColor === void 0 ? void 0 : SmallParticlesMinColor.value : SmallParticlesMinColor, isRaw: typeof SmallParticlesMinColor === "object" && "isRaw" in SmallParticlesMinColor && SmallParticlesMinColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "SmallParticlesMaxColor", id: typeof SmallParticlesMaxColor === "object" && "id" in SmallParticlesMaxColor ? SmallParticlesMaxColor === null || SmallParticlesMaxColor === void 0 ? void 0 : SmallParticlesMaxColor.id : undefined, value: typeof SmallParticlesMaxColor === "object" && "value" in SmallParticlesMaxColor ? SmallParticlesMaxColor === null || SmallParticlesMaxColor === void 0 ? void 0 : SmallParticlesMaxColor.value : SmallParticlesMaxColor, isRaw: typeof SmallParticlesMaxColor === "object" && "isRaw" in SmallParticlesMaxColor && SmallParticlesMaxColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "DarkParticlesMinColor", id: typeof DarkParticlesMinColor === "object" && "id" in DarkParticlesMinColor ? DarkParticlesMinColor === null || DarkParticlesMinColor === void 0 ? void 0 : DarkParticlesMinColor.id : undefined, value: typeof DarkParticlesMinColor === "object" && "value" in DarkParticlesMinColor ? DarkParticlesMinColor === null || DarkParticlesMinColor === void 0 ? void 0 : DarkParticlesMinColor.value : DarkParticlesMinColor, isRaw: typeof DarkParticlesMinColor === "object" && "isRaw" in DarkParticlesMinColor && DarkParticlesMinColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "DarkParticlesMaxColor", id: typeof DarkParticlesMaxColor === "object" && "id" in DarkParticlesMaxColor ? DarkParticlesMaxColor === null || DarkParticlesMaxColor === void 0 ? void 0 : DarkParticlesMaxColor.id : undefined, value: typeof DarkParticlesMaxColor === "object" && "value" in DarkParticlesMaxColor ? DarkParticlesMaxColor === null || DarkParticlesMaxColor === void 0 ? void 0 : DarkParticlesMaxColor.value : DarkParticlesMaxColor, isRaw: typeof DarkParticlesMaxColor === "object" && "isRaw" in DarkParticlesMaxColor && DarkParticlesMaxColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "GroundNearColor", id: typeof GroundNearColor === "object" && "id" in GroundNearColor ? GroundNearColor === null || GroundNearColor === void 0 ? void 0 : GroundNearColor.id : undefined, value: typeof GroundNearColor === "object" && "value" in GroundNearColor ? GroundNearColor === null || GroundNearColor === void 0 ? void 0 : GroundNearColor.value : GroundNearColor, isRaw: typeof GroundNearColor === "object" && "isRaw" in GroundNearColor && GroundNearColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "GroundFarColor", id: typeof GroundFarColor === "object" && "id" in GroundFarColor ? GroundFarColor === null || GroundFarColor === void 0 ? void 0 : GroundFarColor.id : undefined, value: typeof GroundFarColor === "object" && "value" in GroundFarColor ? GroundFarColor === null || GroundFarColor === void 0 ? void 0 : GroundFarColor.value : GroundFarColor, isRaw: typeof GroundFarColor === "object" && "isRaw" in GroundFarColor && GroundFarColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.GradientSkyMaterial]", name: "Skybox", id: typeof Skybox === "object" && "id" in Skybox ? Skybox === null || Skybox === void 0 ? void 0 : Skybox.id : undefined, value: typeof Skybox === "object" && "value" in Skybox ? Skybox === null || Skybox === void 0 ? void 0 : Skybox.value : Skybox, isRaw: typeof Skybox === "object" && "isRaw" in Skybox && Skybox.isRaw ? true : undefined })] })));
}
exports.MicroworldController = MicroworldController;
;