neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 6.13 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.SessionItem = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function SessionItem(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _background = props._background, _circleOutline = props._circleOutline, _thumbnail = props._thumbnail, _thumbnailTexture = props._thumbnailTexture, _sessionName = props._sessionName, _sessionHost = props._sessionHost, _userCount = props._userCount, _joinButton = props._joinButton;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.SessionItem", 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.SyncRef`1[FrooxEngine.UIX.Image]", name: "_background", id: typeof _background === "object" && "id" in _background ? _background === null || _background === void 0 ? void 0 : _background.id : undefined, value: typeof _background === "object" && "value" in _background ? _background === null || _background === void 0 ? void 0 : _background.value : _background, isRaw: typeof _background === "object" && "isRaw" in _background && _background.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Image]", name: "_circleOutline", id: typeof _circleOutline === "object" && "id" in _circleOutline ? _circleOutline === null || _circleOutline === void 0 ? void 0 : _circleOutline.id : undefined, value: typeof _circleOutline === "object" && "value" in _circleOutline ? _circleOutline === null || _circleOutline === void 0 ? void 0 : _circleOutline.value : _circleOutline, isRaw: typeof _circleOutline === "object" && "isRaw" in _circleOutline && _circleOutline.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Image]", name: "_thumbnail", id: typeof _thumbnail === "object" && "id" in _thumbnail ? _thumbnail === null || _thumbnail === void 0 ? void 0 : _thumbnail.id : undefined, value: typeof _thumbnail === "object" && "value" in _thumbnail ? _thumbnail === null || _thumbnail === void 0 ? void 0 : _thumbnail.value : _thumbnail, isRaw: typeof _thumbnail === "object" && "isRaw" in _thumbnail && _thumbnail.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.StaticTexture2D]", name: "_thumbnailTexture", id: typeof _thumbnailTexture === "object" && "id" in _thumbnailTexture ? _thumbnailTexture === null || _thumbnailTexture === void 0 ? void 0 : _thumbnailTexture.id : undefined, value: typeof _thumbnailTexture === "object" && "value" in _thumbnailTexture ? _thumbnailTexture === null || _thumbnailTexture === void 0 ? void 0 : _thumbnailTexture.value : _thumbnailTexture, isRaw: typeof _thumbnailTexture === "object" && "isRaw" in _thumbnailTexture && _thumbnailTexture.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_sessionName", id: typeof _sessionName === "object" && "id" in _sessionName ? _sessionName === null || _sessionName === void 0 ? void 0 : _sessionName.id : undefined, value: typeof _sessionName === "object" && "value" in _sessionName ? _sessionName === null || _sessionName === void 0 ? void 0 : _sessionName.value : _sessionName, isRaw: typeof _sessionName === "object" && "isRaw" in _sessionName && _sessionName.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_sessionHost", id: typeof _sessionHost === "object" && "id" in _sessionHost ? _sessionHost === null || _sessionHost === void 0 ? void 0 : _sessionHost.id : undefined, value: typeof _sessionHost === "object" && "value" in _sessionHost ? _sessionHost === null || _sessionHost === void 0 ? void 0 : _sessionHost.value : _sessionHost, isRaw: typeof _sessionHost === "object" && "isRaw" in _sessionHost && _sessionHost.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Text]", name: "_userCount", id: typeof _userCount === "object" && "id" in _userCount ? _userCount === null || _userCount === void 0 ? void 0 : _userCount.id : undefined, value: typeof _userCount === "object" && "value" in _userCount ? _userCount === null || _userCount === void 0 ? void 0 : _userCount.value : _userCount, isRaw: typeof _userCount === "object" && "isRaw" in _userCount && _userCount.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.Button]", name: "_joinButton", id: typeof _joinButton === "object" && "id" in _joinButton ? _joinButton === null || _joinButton === void 0 ? void 0 : _joinButton.id : undefined, value: typeof _joinButton === "object" && "value" in _joinButton ? _joinButton === null || _joinButton === void 0 ? void 0 : _joinButton.value : _joinButton, isRaw: typeof _joinButton === "object" && "isRaw" in _joinButton && _joinButton.isRaw ? true : undefined })] })));
}
exports.SessionItem = SessionItem;
;