neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 6.83 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.Light = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function Light(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, LightType = props.LightType, Intensity = props.Intensity, Color = props.Color, ShadowType = props.ShadowType, ShadowStrength = props.ShadowStrength, ShadowNearPlane = props.ShadowNearPlane, ShadowMapResolution = props.ShadowMapResolution, Range = props.Range, SpotAngle = props.SpotAngle, Cookie = props.Cookie;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.Light", 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.LightType]", name: "LightType", id: typeof LightType === "object" && "id" in LightType ? LightType === null || LightType === void 0 ? void 0 : LightType.id : undefined, value: typeof LightType === "object" && "value" in LightType ? LightType === null || LightType === void 0 ? void 0 : LightType.value : LightType, isRaw: typeof LightType === "object" && "isRaw" in LightType && LightType.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Intensity", id: typeof Intensity === "object" && "id" in Intensity ? Intensity === null || Intensity === void 0 ? void 0 : Intensity.id : undefined, value: typeof Intensity === "object" && "value" in Intensity ? Intensity === null || Intensity === void 0 ? void 0 : Intensity.value : Intensity, isRaw: typeof Intensity === "object" && "isRaw" in Intensity && Intensity.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "Color", id: typeof Color === "object" && "id" in Color ? Color === null || Color === void 0 ? void 0 : Color.id : undefined, value: typeof Color === "object" && "value" in Color ? Color === null || Color === void 0 ? void 0 : Color.value : Color, isRaw: typeof Color === "object" && "isRaw" in Color && Color.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ShadowType]", name: "ShadowType", id: typeof ShadowType === "object" && "id" in ShadowType ? ShadowType === null || ShadowType === void 0 ? void 0 : ShadowType.id : undefined, value: typeof ShadowType === "object" && "value" in ShadowType ? ShadowType === null || ShadowType === void 0 ? void 0 : ShadowType.value : ShadowType, isRaw: typeof ShadowType === "object" && "isRaw" in ShadowType && ShadowType.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ShadowStrength", id: typeof ShadowStrength === "object" && "id" in ShadowStrength ? ShadowStrength === null || ShadowStrength === void 0 ? void 0 : ShadowStrength.id : undefined, value: typeof ShadowStrength === "object" && "value" in ShadowStrength ? ShadowStrength === null || ShadowStrength === void 0 ? void 0 : ShadowStrength.value : ShadowStrength, isRaw: typeof ShadowStrength === "object" && "isRaw" in ShadowStrength && ShadowStrength.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ShadowNearPlane", id: typeof ShadowNearPlane === "object" && "id" in ShadowNearPlane ? ShadowNearPlane === null || ShadowNearPlane === void 0 ? void 0 : ShadowNearPlane.id : undefined, value: typeof ShadowNearPlane === "object" && "value" in ShadowNearPlane ? ShadowNearPlane === null || ShadowNearPlane === void 0 ? void 0 : ShadowNearPlane.value : ShadowNearPlane, isRaw: typeof ShadowNearPlane === "object" && "isRaw" in ShadowNearPlane && ShadowNearPlane.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "ShadowMapResolution", id: typeof ShadowMapResolution === "object" && "id" in ShadowMapResolution ? ShadowMapResolution === null || ShadowMapResolution === void 0 ? void 0 : ShadowMapResolution.id : undefined, value: typeof ShadowMapResolution === "object" && "value" in ShadowMapResolution ? ShadowMapResolution === null || ShadowMapResolution === void 0 ? void 0 : ShadowMapResolution.value : ShadowMapResolution, isRaw: typeof ShadowMapResolution === "object" && "isRaw" in ShadowMapResolution && ShadowMapResolution.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Range", id: typeof Range === "object" && "id" in Range ? Range === null || Range === void 0 ? void 0 : Range.id : undefined, value: typeof Range === "object" && "value" in Range ? Range === null || Range === void 0 ? void 0 : Range.value : Range, isRaw: typeof Range === "object" && "isRaw" in Range && Range.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SpotAngle", id: typeof SpotAngle === "object" && "id" in SpotAngle ? SpotAngle === null || SpotAngle === void 0 ? void 0 : SpotAngle.id : undefined, value: typeof SpotAngle === "object" && "value" in SpotAngle ? SpotAngle === null || SpotAngle === void 0 ? void 0 : SpotAngle.value : SpotAngle, isRaw: typeof SpotAngle === "object" && "isRaw" in SpotAngle && SpotAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture]", name: "Cookie", id: typeof Cookie === "object" && "id" in Cookie ? Cookie === null || Cookie === void 0 ? void 0 : Cookie.id : undefined, value: typeof Cookie === "object" && "value" in Cookie ? Cookie === null || Cookie === void 0 ? void 0 : Cookie.value : Cookie, isRaw: typeof Cookie === "object" && "isRaw" in Cookie && Cookie.isRaw ? true : undefined })] })));
}
exports.Light = Light;
;