Skip to content

Commit

Permalink
docs: update Java examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Jun 8, 2024
1 parent adc425b commit de1cd4e
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions docs/library/api/cutscene-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/daedalus-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/daedalus-vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/font.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/mesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/model-animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/model-hierarchy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/model-mesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/model-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/morph-mesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/multi-resolution-mesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/texture.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docs/library/api/world.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit de1cd4e

Please sign in to comment.