unpack

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryStream

type BinaryStream struct {
	// contains filtered or unexported fields
}

func NewBinaryStream

func NewBinaryStream(baseStream io.ReadWriteSeeker, bigEndian bool) *BinaryStream

func (*BinaryStream) BytesAvailable

func (bs *BinaryStream) BytesAvailable() int64

func (*BinaryStream) Position

func (bs *BinaryStream) Position() int64

func (*BinaryStream) ReadBool

func (bs *BinaryStream) ReadBool() bool

func (*BinaryStream) ReadBytes

func (bs *BinaryStream) ReadBytes(length int) []byte

func (*BinaryStream) ReadBytesIntoBuffer

func (bs *BinaryStream) ReadBytesIntoBuffer(buffer []byte)

func (*BinaryStream) ReadChar

func (bs *BinaryStream) ReadChar() int8

func (*BinaryStream) ReadFloat32

func (bs *BinaryStream) ReadFloat32() float32

func (*BinaryStream) ReadFloat64

func (bs *BinaryStream) ReadFloat64() float64

func (*BinaryStream) ReadInt16

func (bs *BinaryStream) ReadInt16() int16

func (*BinaryStream) ReadInt32

func (bs *BinaryStream) ReadInt32() int32

func (*BinaryStream) ReadInt64

func (bs *BinaryStream) ReadInt64() int64

func (*BinaryStream) ReadShort

func (bs *BinaryStream) ReadShort() int16

func (*BinaryStream) ReadString

func (bs *BinaryStream) ReadString() string

func (*BinaryStream) ReadUchar

func (bs *BinaryStream) ReadUchar() uint8

func (*BinaryStream) ReadUint16

func (bs *BinaryStream) ReadUint16() uint16

func (*BinaryStream) ReadUint32

func (bs *BinaryStream) ReadUint32() uint32

func (*BinaryStream) ReadUint64

func (bs *BinaryStream) ReadUint64() uint64

func (*BinaryStream) Seek

func (bs *BinaryStream) Seek(position int64, whence int) (int64, error)

func (*BinaryStream) SetPosition

func (bs *BinaryStream) SetPosition(position int64)

func (*BinaryStream) WriteBool

func (bs *BinaryStream) WriteBool(value bool)

func (*BinaryStream) WriteChar

func (bs *BinaryStream) WriteChar(value int8)

func (*BinaryStream) WriteFloat32

func (bs *BinaryStream) WriteFloat32(value float32)

func (*BinaryStream) WriteFloat64

func (bs *BinaryStream) WriteFloat64(value float64)

func (*BinaryStream) WriteInt16

func (bs *BinaryStream) WriteInt16(value int16)

func (*BinaryStream) WriteInt32

func (bs *BinaryStream) WriteInt32(value int32)

func (*BinaryStream) WriteInt64

func (bs *BinaryStream) WriteInt64(value int64)

func (*BinaryStream) WriteString

func (bs *BinaryStream) WriteString(value string)

func (*BinaryStream) WriteUchar

func (bs *BinaryStream) WriteUchar(value uint8)

func (*BinaryStream) WriteUint16

func (bs *BinaryStream) WriteUint16(value uint16)

func (*BinaryStream) WriteUint32

func (bs *BinaryStream) WriteUint32(value uint32)

func (*BinaryStream) WriteUint64

func (bs *BinaryStream) WriteUint64(value uint64)

type D2I

type D2I struct {
	Stream io.ReadWriteSeeker
	Obj    map[string]map[string]interface{}
}

func NewD2I

func NewD2I(stream io.ReadWriteSeeker) *D2I

func (*D2I) Read

func (d *D2I) Read() map[string]map[string]interface{}

type D2OReader

type D2OReader struct {
	D2OFileBinary *BinaryStream
	// contains filtered or unexported fields
}

D2OReader represents a reader for D2O files.

func NewD2OReader

func NewD2OReader(stream io.ReadWriteSeeker) (*D2OReader, error)

NewD2OReader creates a new D2OReader instance with the given stream.

func (*D2OReader) GetClassDefinition

func (dr *D2OReader) GetClassDefinition(objectID int32) *GameDataClassDefinition

GetClassDefinition returns the class definition for a given object_id.

func (*D2OReader) GetObjects

func (dr *D2OReader) GetObjects() []interface{}

type D2P

type D2P struct {
	Stream io.ReadWriteSeeker
	// contains filtered or unexported fields
}

func NewD2P

func NewD2P(stream io.ReadWriteSeeker) *D2P

func (*D2P) GetFiles

func (d2p *D2P) GetFiles() map[string]map[string]interface{}

type GameDataClassDefinition

type GameDataClassDefinition struct {
	// contains filtered or unexported fields
}

func NewGameDataClassDefinition

func NewGameDataClassDefinition(class_pkg string, class_name string, d2oReader *D2OReader) *GameDataClassDefinition

type GameDataField

type GameDataField struct {
	// contains filtered or unexported fields
}

func NewGameDataField

func NewGameDataField(name string, d2oReader *D2OReader) *GameDataField

type GameDataProcess

type GameDataProcess struct {
	// contains filtered or unexported fields
}

func NewGameDataProcess

func NewGameDataProcess(D2OFileBinary *BinaryStream) *GameDataProcess

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL