2022-11-10 04:26:21 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
2022-11-11 06:00:05 +00:00
|
|
|
"time"
|
2022-11-10 04:26:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type TableKey struct {
|
2023-01-28 07:28:15 +00:00
|
|
|
Name string `json:name`
|
|
|
|
Passcode string `json:passcode`
|
2022-11-10 04:26:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DiceRoll struct {
|
2022-11-11 06:00:05 +00:00
|
|
|
Faces uint8
|
|
|
|
Roll []uint8
|
|
|
|
Player string
|
|
|
|
Note string
|
|
|
|
Timestamp time.Time
|
2022-11-10 04:26:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Token struct {
|
2022-11-11 06:00:05 +00:00
|
|
|
Id string
|
2022-11-16 03:43:09 +00:00
|
|
|
Name string
|
2022-11-11 06:00:05 +00:00
|
|
|
SpriteUri string
|
|
|
|
X int
|
|
|
|
Y int
|
|
|
|
}
|
2022-11-16 03:43:09 +00:00
|
|
|
|
|
|
|
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-11-16 03:43:09 +00:00
|
|
|
}
|
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
|
|
|
|
}
|