Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharacterDTO ¶
type CharacterDTO struct { dto.EntityMetadata `mapper:"Model" json:"metadata"` Race entity.CharacterRace `mapper:"Race" json:"race,omitempty"` Stat StatDTO `mapper:"Stat" json:"stat,omitempty"` State StateDTO `mapper:"State" json:"state,omitempty"` Name string `mapper:"Name" json:"name,omitempty"` }
func MakeCharacterDTOFromEntity ¶
func MakeCharacterDTOFromEntity(chara entity.Character) (CharacterDTO, error)
func (CharacterDTO) ApplyToEntity ¶
func (d CharacterDTO) ApplyToEntity(chara *entity.Character) error
type StatDTO ¶
type StatDTO struct { dto.EntityMetadata `mapper:"Model" json:"metadata"` BaseAttack int `mapper:"BaseAttack" json:"baseAttack,omitempty"` BaseDefense int `mapper:"BaseDefense" json:"baseDefense,omitempty"` BaseMP int `mapper:"BaseMP" json:"baseMP,omitempty"` BaseHP int `mapper:"BaseHP" json:"baseHP,omitempty"` Strength int `mapper:"Strength" json:"strength,omitempty"` Speed int `mapper:"Speed" json:"speed,omitempty"` Intelligence int `mapper:"Intelligence" json:"intelligence,omitempty"` CharacterID uint `mapper:"CharacterID" json:"characterID,omitempty"` }
Click to show internal directories.
Click to hide internal directories.