Documentation ¶
Index ¶
Constants ¶
View Source
const FileInfoID = 1
Variables ¶
This section is empty.
Functions ¶
func RegisterSection ¶
func RegisterSection(s Section)
RegisterSection registers a section for automated decoding.
Types ¶
type Attributes ¶
type Attributes struct { Vers uint16 Flags uint32 Name string Val50 uint32 Val54 uint32 Val58 uint32 Val62 uint32 Val66 byte Val67 byte Val68 [3]byte Val71 [3]byte Val74 [3]byte Val77 [3]byte Val80 [3]byte Val83 byte Val84 byte Val85 byte Val86 byte Val87 byte Val88 byte Val320 uint32 Unused1 [9]uint32 Val4696 uint32 }
func (*Attributes) ID ¶
func (*Attributes) ID() uint32
func (*Attributes) SectName ¶
func (s *Attributes) SectName() string
func (*Attributes) UnmarshalBinary ¶
func (s *Attributes) UnmarshalBinary(data []byte) error
type FieldGuide ¶
type FieldGuide struct {
Data []byte
}
func (*FieldGuide) ID ¶
func (*FieldGuide) ID() uint32
func (*FieldGuide) SectName ¶
func (s *FieldGuide) SectName() string
func (*FieldGuide) UnmarshalBinary ¶
func (s *FieldGuide) UnmarshalBinary(data []byte) error
type FileInfo ¶
type FileInfo struct { Vers uint16 Val0 uint32 Path string Str2 string Time Time Val4 [3]byte Val5 [3]byte Val6 [3]byte Val7 [3]byte Val8 [3]byte Val9 byte Val10 byte Val11 byte Val12 byte Val13 byte Name string Val15 byte Val16 byte Val17 byte Map string Val19 byte }
func (*FileInfo) UnmarshalBinary ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is a player save file reader.
func (*Reader) ReadSection ¶
ReadSection reads next save file section.
type Section ¶
type Section interface { // ID returns a unique section ID used in binary encoding. ID() uint32 // SectName returns a human-friendly section name. SectName() string encoding.BinaryUnmarshaler }
Section is a common interface for player save file sections.
type Status ¶
type Status struct { Vers uint16 Val1 byte MaxHealth uint16 MaxMana uint16 Val4 uint16 Val5 uint16 Val6 byte Val7 byte Val8 uint16 Val9 uint32 Val10 uint16 }
func (*Status) UnmarshalBinary ¶
type Time ¶
type UnknownSect ¶
UnknownSect represents a section that is not yet supported.
func (*UnknownSect) ID ¶
func (s *UnknownSect) ID() uint32
func (*UnknownSect) SectName ¶
func (s *UnknownSect) SectName() string
func (*UnknownSect) UnmarshalBinary ¶
func (s *UnknownSect) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.