From de1cd4efecd06b847688170f31d2bd0e0b962e16 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Sat, 8 Jun 2024 09:20:37 +0200 Subject: [PATCH] docs: update Java examples --- docs/library/api/cutscene-library.md | 4 ++-- docs/library/api/daedalus-script.md | 4 ++-- docs/library/api/daedalus-vm.md | 4 ++-- docs/library/api/font.md | 4 ++-- docs/library/api/mesh.md | 4 ++-- docs/library/api/model-animation.md | 4 ++-- docs/library/api/model-hierarchy.md | 4 ++-- docs/library/api/model-mesh.md | 4 ++-- docs/library/api/model-script.md | 4 ++-- docs/library/api/model.md | 4 ++-- docs/library/api/morph-mesh.md | 4 ++-- docs/library/api/multi-resolution-mesh.md | 4 ++-- docs/library/api/texture.md | 4 ++-- docs/library/api/world.md | 4 ++-- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/docs/library/api/cutscene-library.md b/docs/library/api/cutscene-library.md index eecf7cfa..bc7d20dc 100644 --- a/docs/library/api/cutscene-library.md +++ b/docs/library/api/cutscene-library.md @@ -73,12 +73,12 @@ of Gothic and Gothic II installations. import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var csl = new CutsceneLibrary("OU.csl"); + var csl = CutsceneLibrary.load("OU.csl"); // ... or from a VFS: var vfs = new Vfs(); vfs.mount("_work/", "/", VfsOverwriteBehavior.OLDER); - csl = new CutsceneLibrary(vfs, "OU.csl"); + csl = CutsceneLibrary.load(vfs, "OU.csl"); ``` === "Python" diff --git a/docs/library/api/daedalus-script.md b/docs/library/api/daedalus-script.md index 571b08d6..14d41d87 100644 --- a/docs/library/api/daedalus-script.md +++ b/docs/library/api/daedalus-script.md @@ -73,12 +73,12 @@ loading and executing compiled scripts using the `zenkit::DaedalusScript` API. import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var script = new DaedalusScript("MENU.DAT"); + var script = DaedalusScript.load("MENU.DAT"); // ... or from a VFS: var vfs = new Vfs(); vfs.mount("_work/", "/", VfsOverwriteBehavior.Older); - script = new DaedalusScript(vfs, "MENU.DAT"); + script = DaedalusScript.load(vfs, "MENU.DAT"); ``` === "Python" diff --git a/docs/library/api/daedalus-vm.md b/docs/library/api/daedalus-vm.md index 03dbf10c..b28b7192 100644 --- a/docs/library/api/daedalus-vm.md +++ b/docs/library/api/daedalus-vm.md @@ -71,12 +71,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var script = new DaedalusScript("MENU.DAT"); + var script = DaedalusScript.load("MENU.DAT"); // ... or from a VFS: var vfs = new Vfs(); vfs.mount("_work/", "/", VfsOverwriteBehavior.Older); - script = new DaedalusScript(vfs, "MENU.DAT"); + script = DaedalusScript.load(vfs, "MENU.DAT"); ``` === "Python" diff --git a/docs/library/api/font.md b/docs/library/api/font.md index f3a9d963..7517e811 100644 --- a/docs/library/api/font.md +++ b/docs/library/api/font.md @@ -79,12 +79,12 @@ glyph contains two coordinates which together form a rectangle around the glyph import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var fnt = new Font("FONT_OLD_20.FNT"); + var fnt = Font.load("FONT_OLD_20.FNT"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Textures.vdf", VfsOverwriteBehavior.OLDER) - fnt = new Font(vfs, "FONT_OLD_20.FNT"); + fnt = Font.load(vfs, "FONT_OLD_20.FNT"); ``` === "Python" diff --git a/docs/library/api/mesh.md b/docs/library/api/mesh.md index d71b773e..897a9156 100644 --- a/docs/library/api/mesh.md +++ b/docs/library/api/mesh.md @@ -71,12 +71,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var mesh = new Mesh("MyMesh.MSH"); + var mesh = Mesh.load("MyMesh.MSH"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Meshes.vdf", VfsOverwriteBehavior.OLDER) - mesh = new Mesh(vfs, "MyMesh.MSH"); + mesh = Mesh.load(vfs, "MyMesh.MSH"); ``` === "Python" diff --git a/docs/library/api/model-animation.md b/docs/library/api/model-animation.md index 659da1b9..5c83c657 100644 --- a/docs/library/api/model-animation.md +++ b/docs/library/api/model-animation.md @@ -83,12 +83,12 @@ which should be loaded before animations. The `ModelAnimation::events` field wil import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var man = new ModelAnimation("MyAnimation.MAN"); + var man = ModelAnimation.load("MyAnimation.MAN"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Anims.vdf", VfsOverwriteBehavior.OLDER) - man = new ModelAnimation(vfs, "MyAnimation.MAN"); + man = ModelAnimation.load(vfs, "MyAnimation.MAN"); ``` === "Python" diff --git a/docs/library/api/model-hierarchy.md b/docs/library/api/model-hierarchy.md index 556041bc..adb0d56d 100644 --- a/docs/library/api/model-hierarchy.md +++ b/docs/library/api/model-hierarchy.md @@ -71,12 +71,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var mdh = new ModelHierarchy("MySkeleton.MDH"); + var mdh = ModelHierarchy.load("MySkeleton.MDH"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Anims.vdf", VfsOverwriteBehavior.OLDER) - mdh = new ModelHierarchy(vfs, "MySkeleton.MDH"); + mdh = ModelHierarchy.load(vfs, "MySkeleton.MDH"); ``` === "Python" diff --git a/docs/library/api/model-mesh.md b/docs/library/api/model-mesh.md index 665adeb0..9345f8cb 100644 --- a/docs/library/api/model-mesh.md +++ b/docs/library/api/model-mesh.md @@ -71,12 +71,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var mesh = new ModelMesh("MyMesh.MDM"); + var mesh = ModelMesh.load("MyMesh.MDM"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Anims.vdf", VfsOverwriteBehavior.OLDER) - mesh = new ModelMesh(vfs, "MyMesh.MDM"); + mesh = ModelMesh.load(vfs, "MyMesh.MDM"); ``` === "Python" diff --git a/docs/library/api/model-script.md b/docs/library/api/model-script.md index 91a33c14..1b843adb 100644 --- a/docs/library/api/model-script.md +++ b/docs/library/api/model-script.md @@ -71,12 +71,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var mds = new ModelScript("MyScript.MDS"); + var mds = ModelScript.load("MyScript.MDS"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Anims.vdf", VfsOverwriteBehavior.OLDER) - mds = new ModelScript(vfs, "MyScript.MDS"); + mds = ModelScript.load(vfs, "MyScript.MDS"); ``` === "Python" diff --git a/docs/library/api/model.md b/docs/library/api/model.md index 99a1cb88..c75a4690 100644 --- a/docs/library/api/model.md +++ b/docs/library/api/model.md @@ -73,12 +73,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var mesh = new Model("MyMesh.MDL"); + var mesh = Model.load("MyMesh.MDL"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Anims.vdf", VfsOverwriteBehavior.OLDER) - mesh = new Model(vfs, "MyMesh.MDL"); + mesh = Model.load(vfs, "MyMesh.MDL"); ``` === "Python" diff --git a/docs/library/api/morph-mesh.md b/docs/library/api/morph-mesh.md index 3ec708ef..9743eebb 100644 --- a/docs/library/api/morph-mesh.md +++ b/docs/library/api/morph-mesh.md @@ -71,12 +71,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var mmb = new MorphMesh("MyMesh.MMB"); + var mmb = MorphMesh.load("MyMesh.MMB"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Anims.vdf", VfsOverwriteBehavior.OLDER) - mmb = new MorphMesh(vfs, "MyMesh.MMB"); + mmb = MorphMesh.load(vfs, "MyMesh.MMB"); ``` === "Python" diff --git a/docs/library/api/multi-resolution-mesh.md b/docs/library/api/multi-resolution-mesh.md index 95f5c343..4166f6e9 100644 --- a/docs/library/api/multi-resolution-mesh.md +++ b/docs/library/api/multi-resolution-mesh.md @@ -71,12 +71,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var mrm = new MultiResolutionMesh("MyMesh.MRM"); + var mrm = MultiResolutionMesh.load("MyMesh.MRM"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Meshes.vdf", VfsOverwriteBehavior.OLDER) - mrm = new MultiResolutionMesh(vfs, "MyMesh.MRM"); + mrm = MultiResolutionMesh.load(vfs, "MyMesh.MRM"); ``` === "Python" diff --git a/docs/library/api/texture.md b/docs/library/api/texture.md index 840a341b..6a014bad 100644 --- a/docs/library/api/texture.md +++ b/docs/library/api/texture.md @@ -71,12 +71,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var tex = new Texture("MyTexture.TEX"); + var tex = Texture.load("MyTexture.TEX"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Textures.vdf", VfsOverwriteBehavior.OLDER) - tex = new Texture(vfs, "MyTexture.TEX"); + tex = Texture.load(vfs, "MyTexture.TEX"); ``` === "Python" diff --git a/docs/library/api/world.md b/docs/library/api/world.md index 885f88be..f39d9384 100644 --- a/docs/library/api/world.md +++ b/docs/library/api/world.md @@ -71,12 +71,12 @@ import dev.gothickit.zenkit.vfs.VfsOverwriteBehavior; // Load from a file on disk: - var world = new World("OLDWORLD.ZEN"); + var world = World.load("OLDWORLD.ZEN"); // ... or from a VFS: var vfs = new Vfs(); vfs.mountDisk("Worlds.vdf", VfsOverwriteBehavior.OLDER) - world = new World(vfs, "OLDWORLD.ZEN"); + world = World.load(vfs, "OLDWORLD.ZEN"); ``` === "Python"