UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 5.16 kB
"use strict"; 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.ProceduralSky = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function ProceduralSky(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, SunQuality = props.SunQuality, SunSize = props.SunSize, Sun = props.Sun, AtmosphereThickness = props.AtmosphereThickness, SkyTint = props.SkyTint, GroundColor = props.GroundColor, Exposure = props.Exposure; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ProceduralSky", 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[FrooxEngine.ProceduralSky+SunType]", name: "SunQuality", id: typeof SunQuality === "object" && "id" in SunQuality ? SunQuality === null || SunQuality === void 0 ? void 0 : SunQuality.id : undefined, value: typeof SunQuality === "object" && "value" in SunQuality ? SunQuality === null || SunQuality === void 0 ? void 0 : SunQuality.value : SunQuality, isRaw: typeof SunQuality === "object" && "isRaw" in SunQuality && SunQuality.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SunSize", id: typeof SunSize === "object" && "id" in SunSize ? SunSize === null || SunSize === void 0 ? void 0 : SunSize.id : undefined, value: typeof SunSize === "object" && "value" in SunSize ? SunSize === null || SunSize === void 0 ? void 0 : SunSize.value : SunSize, isRaw: typeof SunSize === "object" && "isRaw" in SunSize && SunSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Light]", name: "Sun", id: typeof Sun === "object" && "id" in Sun ? Sun === null || Sun === void 0 ? void 0 : Sun.id : undefined, value: typeof Sun === "object" && "value" in Sun ? Sun === null || Sun === void 0 ? void 0 : Sun.value : Sun, isRaw: typeof Sun === "object" && "isRaw" in Sun && Sun.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "AtmosphereThickness", id: typeof AtmosphereThickness === "object" && "id" in AtmosphereThickness ? AtmosphereThickness === null || AtmosphereThickness === void 0 ? void 0 : AtmosphereThickness.id : undefined, value: typeof AtmosphereThickness === "object" && "value" in AtmosphereThickness ? AtmosphereThickness === null || AtmosphereThickness === void 0 ? void 0 : AtmosphereThickness.value : AtmosphereThickness, isRaw: typeof AtmosphereThickness === "object" && "isRaw" in AtmosphereThickness && AtmosphereThickness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "SkyTint", id: typeof SkyTint === "object" && "id" in SkyTint ? SkyTint === null || SkyTint === void 0 ? void 0 : SkyTint.id : undefined, value: typeof SkyTint === "object" && "value" in SkyTint ? SkyTint === null || SkyTint === void 0 ? void 0 : SkyTint.value : SkyTint, isRaw: typeof SkyTint === "object" && "isRaw" in SkyTint && SkyTint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "GroundColor", id: typeof GroundColor === "object" && "id" in GroundColor ? GroundColor === null || GroundColor === void 0 ? void 0 : GroundColor.id : undefined, value: typeof GroundColor === "object" && "value" in GroundColor ? GroundColor === null || GroundColor === void 0 ? void 0 : GroundColor.value : GroundColor, isRaw: typeof GroundColor === "object" && "isRaw" in GroundColor && GroundColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Exposure", id: typeof Exposure === "object" && "id" in Exposure ? Exposure === null || Exposure === void 0 ? void 0 : Exposure.id : undefined, value: typeof Exposure === "object" && "value" in Exposure ? Exposure === null || Exposure === void 0 ? void 0 : Exposure.value : Exposure, isRaw: typeof Exposure === "object" && "isRaw" in Exposure && Exposure.isRaw ? true : undefined })] }))); } exports.ProceduralSky = ProceduralSky; ;