Documentation
¶
Overview ¶
Package esm deals with parsing ESM/omwaddon files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrArgumentNil error
View Source
var ErrTagMismatch error
Functions ¶
Types ¶
type ParsedSubrecord ¶
type ParsedSubrecord interface {
// Unmarshal sub into this instance.
Unmarshal(sub *Subrecord) error
// Marshal the parsed subrecord into a raw binary representation.
// If this instance is nil, this should return (nil, nil).
Marshal() (*Subrecord, error)
Tag() SubrecordTag
}
ParsedSubrecord is an unmarshalled Subrecord.
type Record ¶
type Record struct {
// tag, size, padding, flags
Tag RecordTag
Flags uint32
Subrecords []*Subrecord
// PluginName is just metadata; it is not written to the file.
PluginName string
// PluginOffset is just metadata; it is not written to the file.
PluginOffset int64
}
Record is an unmarshalled component of an ESM file.
func ParsePluginData ¶
ParsePluginData extracts records from an io.Reader.
func ParsePluginFile ¶
ParsePluginFile extracts records from some esm or omwaddon file. See https://en.uesp.net/wiki/Morrowind_Mod:Mod_File_Format
type RecordTag ¶
type RecordTag string
RecordTag identifies the type of record. See https://github.com/OpenMW/openmw/blob/39d117e362808dc13cd411debcb48e363e11639c/components/esm/defs.hpp#L78
type Subrecord ¶
type Subrecord struct {
Tag SubrecordTag
Data []byte
}
Subrecord is a marshalled component of a Record.
func (*Subrecord) UnmarshalTo ¶
func (s *Subrecord) UnmarshalTo(p ParsedSubrecord) error
UnmarshalTo the parsed subrecord p.
type SubrecordTag ¶
type SubrecordTag string
Directories
¶
| Path | Synopsis |
|---|---|
|
Package record contains parsed record and subrecord structs.
|
Package record contains parsed record and subrecord structs. |
|
cell
CELL records contain information about cells (both interior and exterior).
|
CELL records contain information about cells (both interior and exterior). |
|
land
LAND records contain information about the landscape of exterior cells.
|
LAND records contain information about the landscape of exterior cells. |
|
ltex
LTEX records contain information about landscape textures.
|
LTEX records contain information about landscape textures. |
|
lua
Package lua handles LUAL and LUAM records, which are specific to openmw.
|
Package lua handles LUAL and LUAM records, which are specific to openmw. |
|
tes3
Package tes3 handles https://en.uesp.net/wiki/Morrowind_Mod:Mod_File_Format/TES3
|
Package tes3 handles https://en.uesp.net/wiki/Morrowind_Mod:Mod_File_Format/TES3 |
Click to show internal directories.
Click to hide internal directories.