rename vermiparous to karlkoder codec

This commit is contained in:
Reimar 2025-10-13 19:56:04 +02:00
parent 2b6f9a65d8
commit 43b803dd86
No known key found for this signature in database
GPG Key ID: 93549FA07F0AE268
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ import { AssetEditor } from "./asset_editor.js";
import { AssetProvider } from "./asset_provider.js";
import { Gamelib } from "./gamelib.js";
import { CodeStopper } from "./code_stopper.js";
import { Vermiparous } from "./vermiparous.js";
import { KarlkoderCodec } from "./karlkoder_codec.js";
import { promptUpload } from "./prompt_upload.js";
import { GamelibCompleter } from "./gamelib_completer.js";
import { TextCompleter } from "./text_completer.js";
@ -89,7 +89,7 @@ loadButton.onclick = async () => {
`unreachable: something went wrong ! files.length > 1 : files.length = ${files.length}`,
);
}
const items = Vermiparous.de(await fetch(URL.createObjectURL(files[0])).then((x) => x.bytes()));
const items = KarlkoderCodec.de(await fetch(URL.createObjectURL(files[0])).then((x) => x.bytes()));
const assets = items
.filter((x) => x.tag === "asset")
.map((x) => {
@ -132,7 +132,7 @@ exportButton.onclick = async () => {
function saveKarlKoder() {
downloadFile(
slugify(projectName.value) || "project",
Vermiparous.en(
KarlkoderCodec.en(
projectName.value,
editor.getValue(),
assetEditor.assets,

View File

@ -12,7 +12,7 @@ function strToBytes(str) {
return str.split("").map((x) => x.charCodeAt(0));
}
export class Vermiparous {
export class KarlkoderCodec {
static en(name, code, assets) {
const ret = [];
for (const asset of assets) {