neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 7.11 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.GlowingSphereToggle = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function GlowingSphereToggle(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TargetField = props.TargetField, FadeSpeed = props.FadeSpeed, CooldownTime = props.CooldownTime, Radius = props.Radius, GlowColor = props.GlowColor, _emissiveColor = props._emissiveColor, _rimColor = props._rimColor, _sphereRadius = props._sphereRadius, _sphereExtrude = props._sphereExtrude, _colliderRadius = props._colliderRadius;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.GlowingSphereToggle", 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.IField`1[System.Boolean]]", name: "TargetField", id: typeof TargetField === "object" && "id" in TargetField ? TargetField === null || TargetField === void 0 ? void 0 : TargetField.id : undefined, value: typeof TargetField === "object" && "value" in TargetField ? TargetField === null || TargetField === void 0 ? void 0 : TargetField.value : TargetField, isRaw: typeof TargetField === "object" && "isRaw" in TargetField && TargetField.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "FadeSpeed", id: typeof FadeSpeed === "object" && "id" in FadeSpeed ? FadeSpeed === null || FadeSpeed === void 0 ? void 0 : FadeSpeed.id : undefined, value: typeof FadeSpeed === "object" && "value" in FadeSpeed ? FadeSpeed === null || FadeSpeed === void 0 ? void 0 : FadeSpeed.value : FadeSpeed, isRaw: typeof FadeSpeed === "object" && "isRaw" in FadeSpeed && FadeSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "CooldownTime", id: typeof CooldownTime === "object" && "id" in CooldownTime ? CooldownTime === null || CooldownTime === void 0 ? void 0 : CooldownTime.id : undefined, value: typeof CooldownTime === "object" && "value" in CooldownTime ? CooldownTime === null || CooldownTime === void 0 ? void 0 : CooldownTime.value : CooldownTime, isRaw: typeof CooldownTime === "object" && "isRaw" in CooldownTime && CooldownTime.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Radius", id: typeof Radius === "object" && "id" in Radius ? Radius === null || Radius === void 0 ? void 0 : Radius.id : undefined, value: typeof Radius === "object" && "value" in Radius ? Radius === null || Radius === void 0 ? void 0 : Radius.value : Radius, isRaw: typeof Radius === "object" && "isRaw" in Radius && Radius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "GlowColor", id: typeof GlowColor === "object" && "id" in GlowColor ? GlowColor === null || GlowColor === void 0 ? void 0 : GlowColor.id : undefined, value: typeof GlowColor === "object" && "value" in GlowColor ? GlowColor === null || GlowColor === void 0 ? void 0 : GlowColor.value : GlowColor, isRaw: typeof GlowColor === "object" && "isRaw" in GlowColor && GlowColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "_emissiveColor", id: typeof _emissiveColor === "object" && "id" in _emissiveColor ? _emissiveColor === null || _emissiveColor === void 0 ? void 0 : _emissiveColor.id : undefined, value: typeof _emissiveColor === "object" && "value" in _emissiveColor ? _emissiveColor === null || _emissiveColor === void 0 ? void 0 : _emissiveColor.value : _emissiveColor, isRaw: typeof _emissiveColor === "object" && "isRaw" in _emissiveColor && _emissiveColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.color]", name: "_rimColor", id: typeof _rimColor === "object" && "id" in _rimColor ? _rimColor === null || _rimColor === void 0 ? void 0 : _rimColor.id : undefined, value: typeof _rimColor === "object" && "value" in _rimColor ? _rimColor === null || _rimColor === void 0 ? void 0 : _rimColor.value : _rimColor, isRaw: typeof _rimColor === "object" && "isRaw" in _rimColor && _rimColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_sphereRadius", id: typeof _sphereRadius === "object" && "id" in _sphereRadius ? _sphereRadius === null || _sphereRadius === void 0 ? void 0 : _sphereRadius.id : undefined, value: typeof _sphereRadius === "object" && "value" in _sphereRadius ? _sphereRadius === null || _sphereRadius === void 0 ? void 0 : _sphereRadius.value : _sphereRadius, isRaw: typeof _sphereRadius === "object" && "isRaw" in _sphereRadius && _sphereRadius.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_sphereExtrude", id: typeof _sphereExtrude === "object" && "id" in _sphereExtrude ? _sphereExtrude === null || _sphereExtrude === void 0 ? void 0 : _sphereExtrude.id : undefined, value: typeof _sphereExtrude === "object" && "value" in _sphereExtrude ? _sphereExtrude === null || _sphereExtrude === void 0 ? void 0 : _sphereExtrude.value : _sphereExtrude, isRaw: typeof _sphereExtrude === "object" && "isRaw" in _sphereExtrude && _sphereExtrude.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_colliderRadius", id: typeof _colliderRadius === "object" && "id" in _colliderRadius ? _colliderRadius === null || _colliderRadius === void 0 ? void 0 : _colliderRadius.id : undefined, value: typeof _colliderRadius === "object" && "value" in _colliderRadius ? _colliderRadius === null || _colliderRadius === void 0 ? void 0 : _colliderRadius.value : _colliderRadius, isRaw: typeof _colliderRadius === "object" && "isRaw" in _colliderRadius && _colliderRadius.isRaw ? true : undefined })] })));
}
exports.GlowingSphereToggle = GlowingSphereToggle;
;