Documentation ¶
Index ¶
- func CreateAndReplaceInParty(toReplace *PokemonModel, newMember *PokemonModel) error
- func CreatePokemon(pokemon *PokemonModel) error
- func GetAllPokemon(pokemon *[]PokemonModel) error
- func GetDB() *gorm.DB
- func GetParty(pokemon *[]PokemonModel) error
- func ReplaceInParty(toReplace *PokemonModel, newMember *PokemonModel) error
- func UpdatePokemon(pokemon *PokemonModel) error
- type PokemonModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAndReplaceInParty ¶
func CreateAndReplaceInParty(toReplace *PokemonModel, newMember *PokemonModel) error
func CreatePokemon ¶
func CreatePokemon(pokemon *PokemonModel) error
func GetAllPokemon ¶
func GetAllPokemon(pokemon *[]PokemonModel) error
func GetParty ¶
func GetParty(pokemon *[]PokemonModel) error
func ReplaceInParty ¶
func ReplaceInParty(toReplace *PokemonModel, newMember *PokemonModel) error
func UpdatePokemon ¶
func UpdatePokemon(pokemon *PokemonModel) error
Types ¶
type PokemonModel ¶
type PokemonModel struct { gorm.Model PokeId uint16 Name string Nickname string AsciiFrontSpriteUrl string AsciiBackSpriteUrl string EvolvesTo string IsShiny bool Type1 string Type2 string IsInParty bool }
func NewPokemonModelFromFetch ¶
func NewPokemonModelFromFetch(fetched structs.Pokemon, evolvesTo string, isShiny bool) *PokemonModel
func (*PokemonModel) EvolveInto ¶
func (p *PokemonModel) EvolveInto(evolution *PokemonModel) error
func (*PokemonModel) TableName ¶
func (p *PokemonModel) TableName() string
Click to show internal directories.
Click to hide internal directories.