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
AreaPropertieswith 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
Gffdata. - GitArea
Effect - An area-of-effect instance in the area (struct type 0xd).
- GitArea
Properties - 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).
- GitEncounter
Point - 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).
- GitSpawn
Point - 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.