eq2go/internal/common/types.go

53 lines
621 B
Go

package common
type EQ2DataType int
const (
TypeInt8 EQ2DataType = iota
TypeInt16
TypeInt32
TypeInt64
TypeSInt8
TypeSInt16
TypeSInt32
TypeSInt64
TypeChar
TypeFloat
TypeDouble
TypeString8
TypeString16
TypeString32
TypeColor
TypeEquipment
TypeItem
TypeArray
)
// Core EQ2 structures
type EQ2Color struct {
Red uint8
Green uint8
Blue uint8
}
type EQ2EquipmentItem struct {
Type uint16
Color EQ2Color
Highlight EQ2Color
}
type EQ2String8 struct {
Size uint8
Data string
}
type EQ2String16 struct {
Size uint16
Data string
}
type EQ2String32 struct {
Size uint32
Data string
}