コード例 #1
0
        //投中的金币
        //Type =1投篮
        //Type = 2砸箱子
        public void SEND_CG_REQ_SHOT_RESULT(uint type, Msg.Coin coin)
        {
            ShotResult ip = new Msg.ShotResult();

            ip.Coin = coin;
            ip.Type = type;
            MemoryStream ms = GetStream();

            ShotResult.Serialize(ms, ip);
            Send(MsgId.ID_ShotResult, ms);
        }
コード例 #2
0
        //投币
        //Type =1投篮
        //Type = 2砸箱子
        public void SEND_CG_REQ_SHOT_GOLD(uint type, Msg.Coin coin)
        {
            ShotGold ip = new Msg.ShotGold();

            ip.Coin = coin;
            ip.Type = type;
            MemoryStream ms = GetStream();

            ShotGold.Serialize(ms, ip);
            Send(MsgId.ID_ShotGold, ms);
        }