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 {
|
2022-11-11 06:00:05 +00:00
|
|
|
Name string
|
|
|
|
Passcode string
|
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
|
|
|
|
}
|