1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-02 22:57:04 -05:00

d2core: fix all fieldalignments

This commit is contained in:
gucio321 2021-06-13 17:49:09 +02:00
parent e42727e868
commit 68b4562159
3 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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