neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 5.26 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.WriteTextToFile = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function WriteTextToFile(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _activeVisual = props._activeVisual, String = props.String, FilePath = props.FilePath, Append = props.Append, NewLine = props.NewLine, OnWriteStarted = props.OnWriteStarted, OnWriteFinished = props.OnWriteFinished;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LogiX.Experimental.WriteTextToFile", 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.CleanupRef`1[FrooxEngine.Slot]", name: "_activeVisual", id: typeof _activeVisual === "object" && "id" in _activeVisual ? _activeVisual === null || _activeVisual === void 0 ? void 0 : _activeVisual.id : undefined, value: typeof _activeVisual === "object" && "value" in _activeVisual ? _activeVisual === null || _activeVisual === void 0 ? void 0 : _activeVisual.value : _activeVisual, isRaw: typeof _activeVisual === "object" && "isRaw" in _activeVisual && _activeVisual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[System.String]", name: "String", id: typeof String === "object" && "id" in String ? String === null || String === void 0 ? void 0 : String.id : undefined, value: typeof String === "object" && "value" in String ? String === null || String === void 0 ? void 0 : String.value : String, isRaw: typeof String === "object" && "isRaw" in String && String.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[System.String]", name: "FilePath", id: typeof FilePath === "object" && "id" in FilePath ? FilePath === null || FilePath === void 0 ? void 0 : FilePath.id : undefined, value: typeof FilePath === "object" && "value" in FilePath ? FilePath === null || FilePath === void 0 ? void 0 : FilePath.value : FilePath, isRaw: typeof FilePath === "object" && "isRaw" in FilePath && FilePath.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[System.Boolean]", name: "Append", id: typeof Append === "object" && "id" in Append ? Append === null || Append === void 0 ? void 0 : Append.id : undefined, value: typeof Append === "object" && "value" in Append ? Append === null || Append === void 0 ? void 0 : Append.value : Append, isRaw: typeof Append === "object" && "isRaw" in Append && Append.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Input`1[System.Boolean]", name: "NewLine", id: typeof NewLine === "object" && "id" in NewLine ? NewLine === null || NewLine === void 0 ? void 0 : NewLine.id : undefined, value: typeof NewLine === "object" && "value" in NewLine ? NewLine === null || NewLine === void 0 ? void 0 : NewLine.value : NewLine, isRaw: typeof NewLine === "object" && "isRaw" in NewLine && NewLine.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Impulse", name: "OnWriteStarted", id: typeof OnWriteStarted === "object" && "id" in OnWriteStarted ? OnWriteStarted === null || OnWriteStarted === void 0 ? void 0 : OnWriteStarted.id : undefined, value: typeof OnWriteStarted === "object" && "value" in OnWriteStarted ? OnWriteStarted === null || OnWriteStarted === void 0 ? void 0 : OnWriteStarted.value : OnWriteStarted, isRaw: typeof OnWriteStarted === "object" && "isRaw" in OnWriteStarted && OnWriteStarted.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.LogiX.Impulse", name: "OnWriteFinished", id: typeof OnWriteFinished === "object" && "id" in OnWriteFinished ? OnWriteFinished === null || OnWriteFinished === void 0 ? void 0 : OnWriteFinished.id : undefined, value: typeof OnWriteFinished === "object" && "value" in OnWriteFinished ? OnWriteFinished === null || OnWriteFinished === void 0 ? void 0 : OnWriteFinished.value : OnWriteFinished, isRaw: typeof OnWriteFinished === "object" && "isRaw" in OnWriteFinished && OnWriteFinished.isRaw ? true : undefined })] })));
}
exports.WriteTextToFile = WriteTextToFile;
;