public void SendTextMsg(string battleID, string accountID, string textData) { LogHelper.DebugLog("Poker收到:" + accountID + " 发来的SendTextMsg"); PokerBattleground bg = PokerBattlegroundManager.Instance.Find(battleID); SocketServer socketServer = PokerServer.Instance.GetServer(); PokerBattle soundBattle = new PokerBattle(); PokerSide currentSide = bg.Battle.Sides.FirstOrDefault(c => c.AccountID == accountID); soundBattle.CurrentSideOrder = currentSide.Order; soundBattle.Sides = bg.Battle.Sides; soundBattle.Step = PokerCommand.SendTextMsg; soundBattle.Msg = textData; LemonMessage msg = new LemonMessage(); msg.Body = new JsonSerialize().SerializeToString(soundBattle); ToPokerCleintCommand.SendMsgToAllClient(PokerCommand.SendTextMsg, soundBattle, msg); }
public void Join(string accountID, string nickName, string face, int vip, int gold, PokerMatchType matchType, string exceptionCode) { PokerBattleground bg = PokerBattlegroundManager.Instance.JoinBattle(accountID, nickName, face, gold, vip, matchType, exceptionCode); ToPokerCleintCommand.SendToClient(PokerCommand.JoinBack, bg.Battle); }