d2dt1

package
v0.0.0-...-c8cfab0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	X           int16
	Y           int16
	GridX       byte
	GridY       byte
	Format      BlockDataFormat
	EncodedData []byte
	Length      int32
	FileOffset  int32
}

type BlockDataFormat

type BlockDataFormat int16
const (
	BlockFormatRLE       BlockDataFormat = 0 // Not 1
	BlockFormatIsometric BlockDataFormat = 1
)

type DT1

type DT1 struct {
	Tiles []Tile
}

func LoadDT1

func LoadDT1(fileData []byte) DT1

type MaterialFlags

type MaterialFlags struct {
	Other        bool
	Water        bool
	WoodObject   bool
	InsideStone  bool
	OutsideStone bool
	Dirt         bool
	Sand         bool
	Wood         bool
	Lava         bool
	Snow         bool
}

Lots of unknowns for now

func NewMaterialFlags

func NewMaterialFlags(data uint16) MaterialFlags

type SubTileFlags

type SubTileFlags struct {
	BlockWalk       bool
	BlockLOS        bool
	BlockJump       bool
	BlockPlayerWalk bool
	Unknown1        bool
	BlockLight      bool
	Unknown2        bool
	Unknown3        bool
}

func NewSubTileFlags

func NewSubTileFlags(data byte) SubTileFlags

type Tile

type Tile struct {
	Direction        int32
	RoofHeight       int16
	MaterialFlags    MaterialFlags
	Height           int32
	Width            int32
	Type             int32
	Style            int32
	Sequence         int32
	RarityFrameIndex int32
	SubTileFlags     [25]SubTileFlags

	Blocks []Block
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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