@skyrim-platform/jcontainers
Version:
TypeScript library for the JContainers Skyrim modding utility
37 lines (32 loc) • 1.84 kB
JavaScript
/*
==============================================
Typescript definitions for v4.2.1
==============================================
This file was automatically generated by Papyrus-2-Typescript.exe
https://github.com/CarlosLeyvaAyala/Papyrus-2-Typescript
The program has no way to know the intention of the humans that made
the scripts, so it's always advisable to manually check all generated
files to make sure everything is declared as it should.
Take note the program assumes this script exists in some subfolder
to the folder where `skyrimPlatform.ts` is found, otherwise you'll get
"Cannot find module..." type of errors.
If you want to have this script in some other place, just change the
relative path of each `import`.
*/
import * as sp from "skyrimPlatform";
/** various string utility methods */
var sn = sp.JString;
/** Breaks source text onto set of lines of almost equal size.
Returns JArray object containing lines.
Accepts ASCII and UTF-8 encoded strings only */
export var wrap = function (sourceText, charactersPerLine) {
if (charactersPerLine === void 0) { charactersPerLine = 60; }
return sn.wrap(sourceText, charactersPerLine);
};
/** FormId|Form <-> "__formData|<pluginName>|<lowFormId>"-string converisons */
export var decodeFormStringToFormId = function (formString) { return sn.decodeFormStringToFormId(formString); };
export var decodeFormStringToForm = function (formString) { return sn.decodeFormStringToForm(formString); };
export var encodeFormToString = function (value) { return sn.encodeFormToString(value); };
export var encodeFormIdToString = function (formId) { return sn.encodeFormIdToString(formId); };
/** Generates random uuid-string like 2e80251a-ab22-4ad8-928c-2d1c9561270e */
export var generateUUID = function () { return sn.generateUUID(); };