entity

package
v0.0.0-...-c2c5a46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateAllWithGORM

func MigrateAllWithGORM(db *gorm.DB) error

Types

type BattleCharacter

type BattleCharacter struct {
	gorm.Model
	CharacterID     uint
	BattleSessionID uint
	MaxMP           int
	MP              int
	HP              int
	MaxHP           int
	Side            BattleSide
}

type BattleSession

type BattleSession struct {
	gorm.Model
	Characters []BattleCharacter
}

type BattleSide

type BattleSide int

type Character

type Character struct {
	gorm.Model
	Race  CharacterRace
	Stat  CharacterStat
	State CharacterState
	Name  string
}

type CharacterRace

type CharacterRace int

type CharacterStat

type CharacterStat struct {
	gorm.Model
	BaseAttack   int
	BaseDefense  int
	BaseMP       int
	BaseHP       int
	Strength     int
	Speed        int
	Intelligence int
	CharacterID  uint
}

type CharacterState

type CharacterState struct {
	gorm.Model
	CurrentMP   int
	CurrentHP   int
	CharacterID uint
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL