Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void Leave(string battleID, string accountID)
        {
            PokerBattleground bg = PokerBattlegroundManager.Instance.Find(battleID);

            bg.Leave(accountID);
        }
Ejemplo n.º 3
0
        public void OperationBack(string battleID, string accountID, PokerOperationType operationType, bool look, string par1)
        {
            PokerBattleground bg = PokerBattlegroundManager.Instance.Find(battleID);

            bg.OperationBack(accountID, operationType, look, par1);
        }
Ejemplo n.º 4
0
        public void ChangeTable(string battleID, string accountID)
        {
            PokerBattleground bg = PokerBattlegroundManager.Instance.Find(battleID);

            bg.ChangeTable(accountID);
        }
Ejemplo n.º 5
0
        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);
        }