Module git

Module git 

Source
Expand description

Typed GIT (.git) model and conversion helpers. GIT (.git) typed generic wrapper.

GIT (Game Instance Template) resources are GFF-backed area instance data. Each area has one GIT that holds positioned object instances (creatures, items, doors, placeables, waypoints, sounds, triggers, stores, encounters, area effects), area-level properties (music, ambient sounds, stealth XP), and a camera list.

§Scope

  • Typed access for all 10 instance list types with position/orientation.
  • Typed AreaProperties with music, ambient sound, and stealth XP fields.
  • Typed camera list with Position (Vector3) and Orientation (Quaternion).
  • Full typed roundtrip for all engine-read fields.

Structs§

Git
Typed GIT model built from/to Gff data.
GitAreaEffect
An area-of-effect instance in the area (struct type 0xd).
GitAreaProperties
Area-level properties (music, ambient sound, stealth XP, fog).
GitCamera
A static camera entry in the area.
GitCreature
A creature instance placed in the area (struct type 4).
GitDoor
A door instance placed in the area (struct type 8).
GitEncounter
An encounter instance placed in the area (struct type 7).
GitEncounterPoint
A vertex in an encounter geometry polygon (X/Y/Z).
GitItem
An item instance placed in the area (struct type 0).
GitPlaceable
A placeable instance placed in the area (struct type 9).
GitSound
A sound instance placed in the area (struct type 6).
GitSpawnPoint
A spawn point within an encounter (X/Y/Z/Orientation).
GitStore
A store instance placed in the area (struct type 0xb).
GitTrigger
A trigger instance placed in the area (struct type 1).
GitWaypoint
A waypoint instance placed in the area (struct type 5).

Enums§

GitError
Errors produced while reading or writing typed GIT data.

Functions§

read_git
Reads typed GIT data from a reader at the current stream position.
read_git_from_bytes
Reads typed GIT data directly from bytes.
write_git
Writes typed GIT data to an output writer.
write_git_to_vec
Serializes typed GIT data into a byte vector.