mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-03 07:07:25 -05:00
d2core: fix all fieldalignments
This commit is contained in:
parent
e42727e868
commit
68b4562159
@ -6,13 +6,13 @@ import (
|
|||||||
|
|
||||||
// InventoryItemArmor stores the info of an armor item in the inventory
|
// InventoryItemArmor stores the info of an armor item in the inventory
|
||||||
type InventoryItemArmor struct {
|
type InventoryItemArmor struct {
|
||||||
InventorySizeX int `json:"inventorySizeX"`
|
ArmorClass string `json:"armorClass"`
|
||||||
|
ItemName string `json:"itemName"`
|
||||||
|
ItemCode string `json:"itemCode"`
|
||||||
InventorySizeY int `json:"inventorySizeY"`
|
InventorySizeY int `json:"inventorySizeY"`
|
||||||
InventorySlotX int `json:"inventorySlotX"`
|
InventorySlotX int `json:"inventorySlotX"`
|
||||||
InventorySlotY int `json:"inventorySlotY"`
|
InventorySlotY int `json:"inventorySlotY"`
|
||||||
ItemName string `json:"itemName"`
|
InventorySizeX int `json:"inventorySizeX"`
|
||||||
ItemCode string `json:"itemCode"`
|
|
||||||
ArmorClass string `json:"armorClass"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetArmorClass returns the class of the armor
|
// GetArmorClass returns the class of the armor
|
||||||
|
@ -6,12 +6,12 @@ import (
|
|||||||
|
|
||||||
// InventoryItemMisc stores the info of an miscellaneous item in the inventory
|
// InventoryItemMisc stores the info of an miscellaneous item in the inventory
|
||||||
type InventoryItemMisc struct {
|
type InventoryItemMisc struct {
|
||||||
|
ItemName string `json:"itemName"`
|
||||||
|
ItemCode string `json:"itemCode"`
|
||||||
InventorySizeX int `json:"inventorySizeX"`
|
InventorySizeX int `json:"inventorySizeX"`
|
||||||
InventorySizeY int `json:"inventorySizeY"`
|
InventorySizeY int `json:"inventorySizeY"`
|
||||||
InventorySlotX int `json:"inventorySlotX"`
|
InventorySlotX int `json:"inventorySlotX"`
|
||||||
InventorySlotY int `json:"inventorySlotY"`
|
InventorySlotY int `json:"inventorySlotY"`
|
||||||
ItemName string `json:"itemName"`
|
|
||||||
ItemCode string `json:"itemCode"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// InventoryItemName returns the name of the miscellaneous item
|
// InventoryItemName returns the name of the miscellaneous item
|
||||||
|
@ -6,14 +6,14 @@ import (
|
|||||||
|
|
||||||
// InventoryItemWeapon stores the info of an weapon item in the inventory
|
// InventoryItemWeapon stores the info of an weapon item in the inventory
|
||||||
type InventoryItemWeapon struct {
|
type InventoryItemWeapon struct {
|
||||||
InventorySizeX int `json:"inventorySizeX"`
|
|
||||||
InventorySizeY int `json:"inventorySizeY"`
|
|
||||||
InventorySlotX int `json:"inventorySlotX"`
|
|
||||||
InventorySlotY int `json:"inventorySlotY"`
|
|
||||||
ItemName string `json:"itemName"`
|
|
||||||
ItemCode string `json:"itemCode"`
|
|
||||||
WeaponClass string `json:"weaponClass"`
|
WeaponClass string `json:"weaponClass"`
|
||||||
WeaponClassOffHand string `json:"weaponClassOffHand"`
|
WeaponClassOffHand string `json:"weaponClassOffHand"`
|
||||||
|
ItemName string `json:"itemName"`
|
||||||
|
ItemCode string `json:"itemCode"`
|
||||||
|
InventorySlotX int `json:"inventorySlotX"`
|
||||||
|
InventorySlotY int `json:"inventorySlotY"`
|
||||||
|
InventorySizeX int `json:"inventorySizeX"`
|
||||||
|
InventorySizeY int `json:"inventorySizeY"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetWeaponClass returns the class of the weapon
|
// GetWeaponClass returns the class of the weapon
|
||||||
|
Loading…
Reference in New Issue
Block a user