init
This commit is contained in:
commit
7cc71fb719
13 changed files with 840 additions and 0 deletions
51
internal/challenge/models.go
Normal file
51
internal/challenge/models.go
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
package challenge
|
||||
|
||||
import "time"
|
||||
|
||||
type Config struct {
|
||||
Floors int
|
||||
Monsters int
|
||||
OpenAt string
|
||||
Duration int
|
||||
}
|
||||
|
||||
type Event struct {
|
||||
At time.Duration
|
||||
Player int
|
||||
ID int
|
||||
Extra string
|
||||
}
|
||||
|
||||
type ResultState string
|
||||
|
||||
const (
|
||||
StateSuccess ResultState = "SUCCESS"
|
||||
StateFail ResultState = "FAIL"
|
||||
StateDisqual ResultState = "DISQUAL"
|
||||
)
|
||||
|
||||
type Player struct {
|
||||
ID int
|
||||
Health int
|
||||
Registered bool
|
||||
InDungeon bool
|
||||
Attempted bool
|
||||
Terminal bool
|
||||
Disqual bool
|
||||
Dead bool
|
||||
Left bool
|
||||
|
||||
EnteredAt time.Duration
|
||||
EndedAt time.Duration
|
||||
|
||||
Floor int
|
||||
MonsterKills []int
|
||||
FloorDurations []time.Duration
|
||||
floorTimerOn bool
|
||||
floorTimerAt time.Duration
|
||||
|
||||
BossEntered bool
|
||||
BossKilled bool
|
||||
BossEnterAt time.Duration
|
||||
BossTime time.Duration
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue