Exemplo n.º 1
0
        protected override void Run(ETModel.Session session, Actor_CowCowGamerReady message)
        {
            UICowCow_GameRoomComponent room = Game.Scene.GetComponent <UIComponent>().Get(UICowCowType.CowCowGameRoom).GetComponent <UICowCow_GameRoomComponent>();

            room.GamerReady(message.SeatIDs.ToArray());
            if (message.IsFullPeople)
            {
                room.ShowHideGrabBanker(true, message.CurBureau);
            }
        }
Exemplo n.º 2
0
        public static async ETVoid SendGrabBanker(int seatId, int multiple)
        {
            Session session = Game.Scene.GetComponent <SessionComponent>().Session;
            M2C_CowCowGrabBanker response = (M2C_CowCowGrabBanker)await session.Call(new C2M_CowCowGrabBanker()
            {
                UserID = ClientComponent.Instance.User.UserID, SeatID = seatId, Multiple = multiple
            });

            if (response.Error == 0)
            {
                //成功
                UICowCow_GameRoomComponent room = Game.Scene.GetComponent <UIComponent>().Get(UICowCowType.CowCowGameRoom).GetComponent <UICowCow_GameRoomComponent>();
                room.ShowHideGrabBanker(false);
            }
        }