Skip to content

Commit

Permalink
docs(objects): migrate initial batch of files to doc generator
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Mar 2, 2024
1 parent 19052b2 commit 82d84de
Show file tree
Hide file tree
Showing 22 changed files with 558 additions and 192 deletions.
25 changes: 10 additions & 15 deletions docs/engine/objects/oCCSTrigger.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
# oCCSTrigger
# `oCCSTrigger`

!!! abstract inline end "Quick Infos"
**Type:** Virtual Object<br/>
**Type:** Object<br/>
**Format Name:** ZenGin Archive<br/>
**File Extension:** `.ZEN`<br/>
**Class Name:** `oCCSTrigger`<br/>
**Version Identifiers:**<br />
— Gothic I: `24577`<br/>
— Gothic II: `24577`<br/>
**ZenKit Class:** `VCutsceneTrigger`<br/>
**ZenKit Class:** `VCutsceneTrigger` <br/>
**Sources:**<br/>
[spacerhilfedatei.sph](https://wiki.worldofgothic.de/doku.php?id=spacer:hilfedatei)<br/>
[spacerhilfedatei.sph](https://wiki.worldofgothic.de/doku.php?id=spacer:hilfedatei)<br />
[gothic-library.ru](http://www.gothic-library.ru/publ/class_occstrigger/1-1-0-530)

A special trigger VObject which can start a cutscene. The [`triggerTarget`](zCTrigger.md#triggerTarget) must be the
name of the cutscene (without the extension) to be started. For this to work, the cutscene must already be loaded.
`OnUntrigger` events are ignored by `oCCSTrigger`s.
A special trigger VObject which can start a cutscene. The [`zCTriggerBase:triggerTarget`](zCTriggerBase.md#triggertarget) must be the name of the cutscene (without the extension) to be started. For this to work, the cutscene must already be loaded. `OnUntrigger` events are ignored by `oCCSTrigger`s.

=== "Gothic 1"

- [zCVob](zCVob.md)
{: .sp-class}
- [*zCTriggerBase*](zCTriggerBase.md)
- [zCTriggerBase](zCTriggerBase.md)
{: .sp-class}
- [zCTrigger](zCTrigger.md)
{: .sp-class}
Expand All @@ -31,10 +28,9 @@ name of the cutscene (without the extension) to be started. For this to work, th
{: .sp-none}

=== "Gothic 2"

- [zCVob](zCVob.md)
{: .sp-class}
- [*zCTriggerBase*](zCTriggerBase.md)
- [zCTriggerBase](zCTriggerBase.md)
{: .sp-class}
- [zCTrigger](zCTrigger.md)
{: .sp-class}
Expand All @@ -44,10 +40,9 @@ name of the cutscene (without the extension) to be started. For this to work, th
{: .sp-none}

=== "Gothic 1 (Save)"

- [zCVob](zCVob.md)
{: .sp-class}
- [*zCTriggerBase*](zCTriggerBase.md)
- [zCTriggerBase](zCTriggerBase.md)
{: .sp-class}
- [zCTrigger](zCTrigger.md)
{: .sp-class}
Expand All @@ -57,14 +52,14 @@ name of the cutscene (without the extension) to be started. For this to work, th
{: .sp-none}

=== "Gothic 2 (Save)"

- [zCVob](zCVob.md)
{: .sp-class}
- [*zCTriggerBase*](zCTriggerBase.md)
- [zCTriggerBase](zCTriggerBase.md)
{: .sp-class}
- [zCTrigger](zCTrigger.md)
{: .sp-class}
- oCCSTrigger
{: .sp-class}
- &lt;empty&gt;
{: .sp-none}

19 changes: 19 additions & 0 deletions docs/engine/objects/oCCSTrigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class:
name: "oCCSTrigger"
bases: [
"zCVob",
"zCTriggerBase",
"zCTrigger",
]
description: |
A special trigger VObject which can start a cutscene. The [zCTriggerBase:triggerTarget] must be the name
of the cutscene (without the extension) to be started. For this to work, the cutscene must already be loaded.
`OnUntrigger` events are ignored by `oCCSTrigger`s.
zenkit: "VCutsceneTrigger"
version:
gothic1: 24577
gothic2: 24577
sources:
spacerhilfedatei.sph: "https://wiki.worldofgothic.de/doku.php?id=spacer:hilfedatei"
gothic-library.ru: "http://www.gothic-library.ru/publ/class_occstrigger/1-1-0-530"

20 changes: 9 additions & 11 deletions docs/engine/objects/oCInfo.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# oCInfo
# `oCInfo`

!!! abstract inline end "Quick Infos"
**Type:** Object<br/>
Expand All @@ -8,53 +8,51 @@
**Version Identifiers:**<br />
— Gothic I: `0`<br/>
— Gothic II: `0`<br/>
**ZenKit Class:** **
**ZenKit Class:** ``

=== "Gothic 1"

- oCInfo
{: .sp-class}
- &lt;empty&gt;
{: .sp-none}

=== "Gothic 2"

- oCInfo
{: .sp-class}
- &lt;empty&gt;
{: .sp-none}

=== "Gothic 1 (Save)"

- oCInfo
{: .sp-class}
- [Told](#told) = FALSE
{: .sp-bool}
- [InstName](#instname) = ""
- [InstName](#instname) =
{: .sp-string}

=== "Gothic 2 (Save)"

- oCInfo
{: .sp-class}
- [Told](#told) = FALSE
{: .sp-bool}
- [InstName](#instname) = ""
- [InstName](#instname) =
{: .sp-string}

## Properties

#### `Told` {: .sp-bool}

: Whether the hero has already been told this info.
: Whether the hero has already been told this info.

* `False` — The info has not yet been told.
* `True` — The info has already been told.
!!! warning
This property is only available in saved games.


#### `InstName` {: .sp-bool}
#### `InstName` {: .sp-string}

: The name of the script instance representing this info.

!!! warning
This property is only available in saved games.

24 changes: 24 additions & 0 deletions docs/engine/objects/oCInfo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class:
name: "oCInfo"
bases: []
description: ""
zenkit: ""
version:
gothic1: 0
gothic2: 0
properties:
Told:
type: "bool"
description: "Whether the hero has already been told this info."
default: "FALSE"
version: [1, 2]
save: true
options:
FALSE: "The info has not yet been told."
TRUE: "The info has already been told."
InstName:
type: "string"
description: "The name of the script instance representing this info."
default: ""
version: [1, 2]
save: true
14 changes: 4 additions & 10 deletions docs/engine/objects/oCInfoManager.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# oCInfoManager
# `oCInfoManager`

!!! abstract inline end "Quick Infos"
**Type:** Object<br/>
Expand All @@ -8,38 +8,34 @@
**Version Identifiers:**<br />
— Gothic I: `0`<br/>
— Gothic II: `0`<br/>
**ZenKit Class:** **
**ZenKit Class:** ``

=== "Gothic 1"

- oCInfoManager
{: .sp-class}
- &lt;empty&gt;
{: .sp-none}

=== "Gothic 2"

- oCInfoManager
{: .sp-class}
- &lt;empty&gt;
{: .sp-none}

=== "Gothic 1 (Save)"

- oCInfoManager
{: .sp-class}
- [NumOfEntries](#numofentries) = 0
{: .sp-int}
- (inline)[^1] [oCInfo](oCInfo.md) ...
- [oCInfo](oCInfo.md) ... = NULL
{: .sp-class}

=== "Gothic 2 (Save)"

- oCInfoManager
{: .sp-class}
- [NumOfEntries](#numofentries) = 0
{: .sp-int}
- (inline)[^1] [oCInfo](oCInfo.md) ...
- [oCInfo](oCInfo.md) ... = NULL
{: .sp-class}

## Properties
Expand All @@ -51,5 +47,3 @@
!!! warning
This property is only available in saved games.

[^1]: "Inline" means, that these objects are not wrapped in an archive object. Rather, their contents are simply
all written to the parent object directly without encapsulation.
21 changes: 21 additions & 0 deletions docs/engine/objects/oCInfoManager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class:
name: "oCInfoManager"
bases: []
description: ""
zenkit: ""
version:
gothic1: 0
gothic2: 0
properties:
NumOfEntries:
type: "int"
description: "The number of saved [oCInfo] objects."
default: "0"
version: [1, 2]
save: true
oCInfo:
type: "class"
default: "NULL"
version: [1, 2]
save: true
multi: true
30 changes: 13 additions & 17 deletions docs/engine/objects/oCItem.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,65 @@
# oCItem
# `oCItem`

!!! abstract inline end "Quick Infos"
**Type:** Virtual Object<br/>
**Type:** Object<br/>
**Format Name:** ZenGin Archive<br/>
**File Extension:** `.ZEN`<br/>
**Class Name:** `oCItem`<br/>
**Version Identifiers:**<br />
— Gothic I: `0`<br/>
— Gothic II: `0`<br/>
**ZenKit Class:** `VItem`<br/>
**ZenKit Class:** `` <br/>
**Sources:**<br/>
[gothic-library.ru](http://www.gothic-library.ru/publ/class_occstrigger/1-1-0-530)

Represents an item in the game world. Items are special VObjects which are tied to a script instance which defines
their attributes. They have physics enabled and can be targeted and picked up by the player.
Represents an item in the game world. Items are special VObjects which are tied to a script instance which defines their attributes. They have physics enabled and can be targeted and picked up by the player.

=== "Gothic 1"

- [zCVob](zCVob.md)
{: .sp-class}
- [oCVob](oCVob.md)
{: .sp-class}
- oCItem
{: .sp-class}
- [itemInstance](#iteminstance) = ""
- [itemInstance](#iteminstance) =
{: .sp-string}

=== "Gothic 2"

- [zCVob](zCVob.md)
{: .sp-class}
- [oCVob](oCVob.md)
{: .sp-class}
- oCItem
{: .sp-class}
- [itemInstance](#iteminstance) = ""
- [itemInstance](#iteminstance) =
{: .sp-string}

=== "Gothic 1 (Save)"

- [zCVob](zCVob.md)
{: .sp-class}
- [oCVob](oCVob.md)
{: .sp-class}
- oCItem
{: .sp-class}
- [itemInstance](#iteminstance) = ""
- [itemInstance](#iteminstance) =
{: .sp-string}
- [amount](#amount) = 0
- [amount](#amount) =
{: .sp-int}
- [flags](#flags) = 0
- [flags](#flags) =
{: .sp-int}

=== "Gothic 2 (Save)"

- [zCVob](zCVob.md)
{: .sp-class}
- [oCVob](oCVob.md)
{: .sp-class}
- oCItem
{: .sp-class}
- [itemInstance](#iteminstance) = ""
- [itemInstance](#iteminstance) =
{: .sp-string}
- [amount](#amount) = 0
- [amount](#amount) =
{: .sp-int}
- [flags](#flags) = 0
- [flags](#flags) =
{: .sp-int}

## Properties
Expand All @@ -86,3 +81,4 @@ their attributes. They have physics enabled and can be targeted and picked up by

!!! warning
This property is only available in saved games.

33 changes: 33 additions & 0 deletions docs/engine/objects/oCItem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
class:
name: "oCItem"
bases:
- "zCVob"
- "oCVob"
description: |
Represents an item in the game world. Items are special VObjects which are tied to a script instance which defines
their attributes. They have physics enabled and can be targeted and picked up by the player.
zenkit: ""
version:
gothic1: 0
gothic2: 0
sources:
gothic-library.ru: http://www.gothic-library.ru/publ/class_occstrigger/1-1-0-530
properties:
itemInstance:
type: "string"
description: "The name of the script instance representing the item."
default: ""
version: [1, 2]
save: false
amount:
type: "int"
description: "Unknown."
default: ""
version: [1, 2]
save: true
flags:
type: "int"
description: "Unknown."
default: ""
version: [1, 2]
save: true
Loading

0 comments on commit 82d84de

Please sign in to comment.