felt/models/models.go

44 lines
609 B
Go
Raw Normal View History

package models
import (
"time"
)
type TableKey struct {
Name string
Passcode string
}
type DiceRoll struct {
Faces uint8
Roll []uint8
Player string
Note string
Timestamp time.Time
}
type Token struct {
Id string
Name string
SpriteUri string
X int
Y int
}
type Table struct {
Name string
Passcode string
MapImageUrl string
DiceRolls []DiceRoll
Tokens []Token
AvailableTokens []Token
2022-12-22 04:45:15 +00:00
AuxMessage string
}
2022-12-07 04:58:42 +00:00
type TableMessage struct {
2022-12-22 04:45:15 +00:00
Roll DiceRoll
Token Token
MapImg string
AuxMsg string
}