1
0
Fork 0
This commit is contained in:
Arthur K. 2026-05-14 20:19:22 +03:00
commit 7cc71fb719
Signed by: wzray
GPG key ID: B97F30FDC4636357
13 changed files with 840 additions and 0 deletions

View 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
}