-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhathora.yml
77 lines (74 loc) · 1.37 KB
/
hathora.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
types:
Nickname: string
CardName: string
Color:
- RED
- WHITE
- PINK
- PURPLE
- YELLOW
GameStatus:
- LOBBY
- PLAYER_TURNS
- BEFORE_SCORING
- ROUND_RECAP
- GAME_OVER
CardDetails:
name: CardName
color: Color
numHearts: int
ruleText: string
Card:
id: int
details: CardDetails?
HandCard:
card: Card
isKeepsake: boolean
PlayerInfo:
name: Nickname
score: int
hand: HandCard[]
drawnCards: Card[]
discardedCards: Card[]
Offer:
faceupCard: Card
facedownCard: Card
BeforeScoringActions:
pinkLarkspurHasDrawn: boolean
pinkLarkspurResolved: boolean
snapdragonResolved: boolean
marigoldResolved: boolean
PlayerState:
round: int
turn: Nickname
status: GameStatus
offer: Offer?
beforeScoring: BeforeScoringActions
players: PlayerInfo[]
nickname: Nickname
methods:
joinGame:
nickname: Nickname
startGame:
drawForOffer:
makeOffer:
faceupCard: CardName
selectOffer:
faceup: boolean
selectBeforeScoringCard:
card: CardName
pinkLarkspurDrawAction:
pinkLarkspurAction:
cardToPick: CardName
cardToReplace: CardName
snapdragonAction:
cardsToSwitch: CardName[]
marigoldAction:
cardToDiscard: CardName
advanceRound:
playAgain:
auth:
anonymous:
separator: "-"
userState: PlayerState
error: string