UNPKG

neos-script

Version:

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

23 lines (22 loc) 4.74 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.MazeGenerator = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function MazeGenerator(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Seed = props.Seed, Cells = props.Cells, WallSize = props.WallSize, Point0 = props.Point0, Point1 = props.Point1, Material = props.Material, Bake = props.Bake; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.MazeGenerator", 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.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[BaseX.int2]", name: "Cells", id: typeof Cells === "object" && "id" in Cells ? Cells === null || Cells === void 0 ? void 0 : Cells.id : undefined, value: typeof Cells === "object" && "value" in Cells ? Cells === null || Cells === void 0 ? void 0 : Cells.value : Cells, isRaw: typeof Cells === "object" && "isRaw" in Cells && Cells.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "WallSize", id: typeof WallSize === "object" && "id" in WallSize ? WallSize === null || WallSize === void 0 ? void 0 : WallSize.id : undefined, value: typeof WallSize === "object" && "value" in WallSize ? WallSize === null || WallSize === void 0 ? void 0 : WallSize.value : WallSize, isRaw: typeof WallSize === "object" && "isRaw" in WallSize && WallSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.int2]", name: "Point0", id: typeof Point0 === "object" && "id" in Point0 ? Point0 === null || Point0 === void 0 ? void 0 : Point0.id : undefined, value: typeof Point0 === "object" && "value" in Point0 ? Point0 === null || Point0 === void 0 ? void 0 : Point0.value : Point0, isRaw: typeof Point0 === "object" && "isRaw" in Point0 && Point0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.int2]", name: "Point1", id: typeof Point1 === "object" && "id" in Point1 ? Point1 === null || Point1 === void 0 ? void 0 : Point1.id : undefined, value: typeof Point1 === "object" && "value" in Point1 ? Point1 === null || Point1 === void 0 ? void 0 : Point1.value : Point1, isRaw: typeof Point1 === "object" && "isRaw" in Point1 && Point1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.MaterialProvider]", name: "Material", id: typeof Material === "object" && "id" in Material ? Material === null || Material === void 0 ? void 0 : Material.id : undefined, value: typeof Material === "object" && "value" in Material ? Material === null || Material === void 0 ? void 0 : Material.value : Material, isRaw: typeof Material === "object" && "isRaw" in Material && Material.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Bake", id: typeof Bake === "object" && "id" in Bake ? Bake === null || Bake === void 0 ? void 0 : Bake.id : undefined, value: typeof Bake === "object" && "value" in Bake ? Bake === null || Bake === void 0 ? void 0 : Bake.value : Bake, isRaw: typeof Bake === "object" && "isRaw" in Bake && Bake.isRaw ? true : undefined })] }))); } exports.MazeGenerator = MazeGenerator; ;