d2ds1

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DS1

type DS1 struct {
	Version                    int32           // The version of the DS1
	Width                      int32           // Width of map, in # of tiles
	Height                     int32           // Height of map, in # of tiles
	Act                        int32           // Act, from 1 to 5. This tells which act table to use for the Objects list
	SubstitutionType           int32           // SubstitutionType (layer type): 0 if no layer, else type 1 or type 2
	Files                      []string        // FilePtr table of file string pointers
	NumberOfWalls              int32           // WallNum number of wall & orientation layers used
	NumberOfFloors             int32           // number of floor layers used
	NumberOfShadowLayers       int32           // ShadowNum number of shadow layer used
	NumberOfSubstitutionLayers int32           // SubstitutionNum number of substitution layer used
	SubstitutionGroupsNum      int32           // SubstitutionGroupsNum number of substitution groups, datas between objects & NPC paths
	Objects                    []d2data.Object // Objects
	Tiles                      [][]TileRecord
	SubstitutionGroups         []SubstitutionGroup
}

func LoadDS1

func LoadDS1(fileData []byte) DS1

type FloorShadowRecord

type FloorShadowRecord struct {
	Prop1       byte
	Sequence    byte
	Unknown1    byte
	Style       byte
	Unknown2    byte
	Hidden      bool
	RandomIndex byte
	Animated    bool
	YAdjust     int
}

type SubstitutionGroup

type SubstitutionGroup struct {
	TileX         int32
	TileY         int32
	WidthInTiles  int32
	HeightInTiles int32
	Unknown       int32
}

type SubstitutionRecord

type SubstitutionRecord struct {
	Unknown uint32
}

type TileRecord

type TileRecord struct {
	Floors        []FloorShadowRecord
	Walls         []WallRecord
	Shadows       []FloorShadowRecord
	Substitutions []SubstitutionRecord
}

type WallRecord

type WallRecord struct {
	Type        d2enum.TileType
	Zero        byte
	Prop1       byte
	Sequence    byte
	Unknown1    byte
	Style       byte
	Unknown2    byte
	Hidden      bool
	RandomIndex byte
	YAdjust     int
}

Jump to

Keyboard shortcuts

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