2020-06-23 14:12:30 -04:00
|
|
|
package d2player
|
|
|
|
|
|
|
|
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
|
|
|
|
2020-06-30 09:58:53 -04:00
|
|
|
// EquipmentSlot represents an equipment slot for a player
|
2020-06-23 14:12:30 -04:00
|
|
|
type EquipmentSlot struct {
|
|
|
|
item InventoryItem
|
|
|
|
x int
|
|
|
|
y int
|
|
|
|
width int
|
|
|
|
height int
|
|
|
|
}
|
|
|
|
|
2020-06-30 09:58:53 -04:00
|
|
|
//nolint:gomnd Magic numbers are necessary for this file
|
2020-07-08 19:08:07 -04:00
|
|
|
func genEquipmentSlotsMap() map[d2enum.EquippedSlot]EquipmentSlot {
|
|
|
|
return map[d2enum.EquippedSlot]EquipmentSlot{
|
|
|
|
d2enum.EquippedSlotLeftArm: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 418,
|
|
|
|
y: 224,
|
|
|
|
width: 61,
|
|
|
|
height: 116,
|
|
|
|
},
|
2020-07-08 19:08:07 -04:00
|
|
|
d2enum.EquippedSlotRightArm: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 648,
|
|
|
|
y: 224,
|
|
|
|
width: 61,
|
|
|
|
height: 116,
|
|
|
|
},
|
2020-07-08 19:08:07 -04:00
|
|
|
d2enum.EquippedSlotHead: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 532,
|
|
|
|
y: 125,
|
|
|
|
width: 62,
|
|
|
|
height: 62,
|
|
|
|
},
|
2020-07-08 19:08:07 -04:00
|
|
|
d2enum.EquippedSlotNeck: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 604,
|
|
|
|
y: 125,
|
|
|
|
width: 32,
|
|
|
|
height: 32,
|
|
|
|
},
|
2020-07-08 19:08:07 -04:00
|
|
|
d2enum.EquippedSlotTorso: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 532,
|
|
|
|
y: 224,
|
|
|
|
width: 62,
|
|
|
|
height: 90,
|
|
|
|
},
|
2020-07-08 19:08:07 -04:00
|
|
|
d2enum.EquippedSlotBelt: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 533,
|
|
|
|
y: 269,
|
|
|
|
width: 62,
|
|
|
|
height: 32,
|
|
|
|
},
|
2020-07-08 19:08:07 -04:00
|
|
|
d2enum.EquippedSlotLeftHand: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 491,
|
2020-06-23 15:28:03 -04:00
|
|
|
y: 270,
|
2020-06-23 14:12:30 -04:00
|
|
|
width: 32,
|
|
|
|
height: 32,
|
|
|
|
},
|
2020-07-08 19:08:07 -04:00
|
|
|
d2enum.EquippedSlotRightHand: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 606,
|
2020-06-23 15:28:03 -04:00
|
|
|
y: 270,
|
2020-06-23 14:12:30 -04:00
|
|
|
width: 32,
|
|
|
|
height: 32,
|
|
|
|
},
|
2020-07-08 19:08:07 -04:00
|
|
|
d2enum.EquippedSlotGloves: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 417,
|
|
|
|
y: 299,
|
|
|
|
width: 62,
|
|
|
|
height: 62,
|
|
|
|
},
|
2020-07-08 19:08:07 -04:00
|
|
|
d2enum.EquippedSlotLegs: {
|
2020-06-23 14:12:30 -04:00
|
|
|
item: nil,
|
|
|
|
x: 648,
|
|
|
|
y: 299,
|
|
|
|
width: 62,
|
|
|
|
height: 62,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|