mirror of
https://hacklab.nilfm.cc/felt
synced 2024-10-22 22:41:48 +00:00
43 lines
609 B
Go
43 lines
609 B
Go
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
|
|
AuxMessage string
|
|
}
|
|
|
|
type TableMessage struct {
|
|
Roll DiceRoll
|
|
Token Token
|
|
MapImg string
|
|
AuxMsg string
|
|
}
|