mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-10 02:26:29 -05:00
* Init for gold button and label * gold button and label in inventory menu * gold value saved/loaded from player save file Co-authored-by: M. Sz <mszeptuch@protonmail.com>
23 lines
910 B
Go
23 lines
910 B
Go
package d2hero
|
|
|
|
import (
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2enum"
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2core/d2inventory"
|
|
)
|
|
|
|
// HeroState stores the state of the player
|
|
type HeroState struct {
|
|
HeroName string `json:"heroName"`
|
|
HeroType d2enum.Hero `json:"heroType"`
|
|
Act int `json:"act"`
|
|
FilePath string `json:"-"`
|
|
Equipment d2inventory.CharacterEquipment `json:"equipment"`
|
|
Stats *HeroStatsState `json:"stats"`
|
|
Skills map[int]*HeroSkill `json:"skills"`
|
|
X float64 `json:"x"`
|
|
Y float64 `json:"y"`
|
|
LeftSkill int `json:"leftSkill"`
|
|
RightSkill int `json:"rightSkill"`
|
|
Gold int `json:"Gold"`
|
|
}
|