53 lines
621 B
Go
53 lines
621 B
Go
package common
|
|
|
|
type EQ2DataType int
|
|
|
|
const (
|
|
TypeUint8 EQ2DataType = iota
|
|
TypeUint16
|
|
TypeUint32
|
|
TypeUint64
|
|
TypeInt8
|
|
TypeInt16
|
|
TypeInt32
|
|
TypeInt64
|
|
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
|
|
}
|