UNPKG

neos-script

Version:

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

23 lines (22 loc) 4.1 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.SpriteProvider = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function SpriteProvider(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, HighPriorityIntegration = props.HighPriorityIntegration, Texture = props.Texture, Rect = props.Rect, Borders = props.Borders, Scale = props.Scale; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.SpriteProvider", 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[System.Boolean]", name: "HighPriorityIntegration", id: typeof HighPriorityIntegration === "object" && "id" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.id : undefined, value: typeof HighPriorityIntegration === "object" && "value" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.value : HighPriorityIntegration, isRaw: typeof HighPriorityIntegration === "object" && "isRaw" in HighPriorityIntegration && HighPriorityIntegration.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.ITexture2D]", name: "Texture", id: typeof Texture === "object" && "id" in Texture ? Texture === null || Texture === void 0 ? void 0 : Texture.id : undefined, value: typeof Texture === "object" && "value" in Texture ? Texture === null || Texture === void 0 ? void 0 : Texture.value : Texture, isRaw: typeof Texture === "object" && "isRaw" in Texture && Texture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.Rect]", name: "Rect", id: typeof Rect === "object" && "id" in Rect ? Rect === null || Rect === void 0 ? void 0 : Rect.id : undefined, value: typeof Rect === "object" && "value" in Rect ? Rect === null || Rect === void 0 ? void 0 : Rect.value : Rect, isRaw: typeof Rect === "object" && "isRaw" in Rect && Rect.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float4]", name: "Borders", id: typeof Borders === "object" && "id" in Borders ? Borders === null || Borders === void 0 ? void 0 : Borders.id : undefined, value: typeof Borders === "object" && "value" in Borders ? Borders === null || Borders === void 0 ? void 0 : Borders.value : Borders, isRaw: typeof Borders === "object" && "isRaw" in Borders && Borders.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Scale", id: typeof Scale === "object" && "id" in Scale ? Scale === null || Scale === void 0 ? void 0 : Scale.id : undefined, value: typeof Scale === "object" && "value" in Scale ? Scale === null || Scale === void 0 ? void 0 : Scale.value : Scale, isRaw: typeof Scale === "object" && "isRaw" in Scale && Scale.isRaw ? true : undefined })] }))); } exports.SpriteProvider = SpriteProvider; ;