# 色碟資料 ### Ations - dealer: updateOpen, updateCheckOut, updateClose - player: updateJoin - game flow: updateStart → updateBet → updateBetEnd → updateCheckOut ## Action 說明 - updateOpen → 荷官開放進入狀態 - updateJoin → 玩家加入使用,隨時可以加入房間。 - updateStart → 由荷官送出的開始遊戲, 牌局開開始 玩家可以bet, - updateBet → 玩家下注使用 - updateBetEnd → 倒數35秒下注期間開始,時間到自動處理發出updateBetEnd。 - updateCheckout → 由荷官送出遊戲戲結果,更新牌局、派彩並可重新start, - updateClose → 由荷官發出關閉遊戲 or 其他狀況關閉。 ## 遊戲資料 ### content ```json "content": { "user": { "id": 8792, "name": "jack12345678", "avatar": "", "balance": 100000, // 荷官沒有 "identity": 1, // 0: 荷官, 1: 玩家 }, "settings": { "sounds": { "bgm": true, "effect": true, "bgmVol": 1, "effectVol": 1 } }, "resume": { "resumeStatus": 1, "content": { "actionName": "updateAction", "content": { "gameInfo": { "roomId": 68848, // 房號 "name": "sedie", // 遊戲名稱 "antes": [5, 10, 50, 100, 200, 1000, 2000, 5000, 10000, 50000], // 可使用賭注 }, "round": { "id": 123456, "playerCount": 10 // 有幾人 "bets": [ { "type": "w4", "odds": 1}, { "type": "r4", "odds": 1}, { "type": "w3", "odds": 1}, { "type": "r3", "odds": 1}, { "type": "single", "odds": 1}, { "type": "double", "odds": 1}, ], "result": { "type": "" } || null, "record": ["w","r","w","r"] }, "user": { "id": 8792, "name": "jack12345678", "avatar": "", "balance": 100000, "identity": 1, // 0: 荷官, 1: 玩家 "win": 0 }, "chat": { "id": 123456, "list": [ { "name": "jack12345678" "content": "wwwww" }, ... ] }, "action": [ { "key": "bet", // 在 stage是 bet時會有 "value": [5, 10, 50, 100, 200, 1000, 2000, 5000, 10000, 50000] }, { "key": "donate", // 什麼階段都可以donate "value": [5, 10, 50, 100, 200, 1000, 2000, 5000, 10000, 50000] } ] "stage": "start" // "start", "bet", "betEnd", "checkout" } } } }, ```