コード例 #1
0
    /**
     * 验证订单
     * @param signature 渠道订单id
     * @param purchaseData 产品id
     */
    public static void CG_VALIDATE_ORDER(string signature, string purchaseData)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_VALIDATE_ORDER);

        msgBody.PutString(signature);
        msgBody.PutString(purchaseData);
        PlatformService.Send(msgBody);
    }
コード例 #2
0
    /**
     * 修改银行密码
     * @param oldBankPassword 银行密码 旧的
     * @param newBankPassword 银行密码 新的
     */
    public static void CG_BANK_CHANGE_PASSWORD(string oldBankPassword, string newBankPassword)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_BANK_CHANGE_PASSWORD);

        msgBody.PutString(oldBankPassword);
        msgBody.PutString(newBankPassword);
        PlatformService.Send(msgBody);
    }
コード例 #3
0
    /**
     * 加入私人房间(根据房间号加入的)
     * @param roomNumber 房间号
     * @param password 加入房间需要此房间的 密码
     */
    public static void CG_ROOM_PRI_JOIN(string roomNumber, string password)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_ROOM_PRI_JOIN);

        msgBody.PutString(roomNumber);
        msgBody.PutString(password);
        PlatformService.Send(msgBody);
    }
コード例 #4
0
    /**
     * 验证订单亚马逊
     * @param orderId 订单号
     * @param receiptId 收据ID
     * @param userId Amazon客户的 ID
     */
    public static void CG_ORDER_AMAZON(long orderId, string receiptId, string userId)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_ORDER_AMAZON);

        msgBody.PutLong(orderId);
        msgBody.PutString(receiptId);
        msgBody.PutString(userId);
        PlatformService.Send(msgBody);
    }
コード例 #5
0
    /**
     * 聊天
     * @param channel 频道
     * @param destRoleUUID 接收玩家id
     * @param content 内容
     * @param roomNumber 房间号
     * @param msgType 消息类型(普通消息:0,可以加入房间的消息:1)
     */
    public static void CG_CHAT_MSG(int channel, long destRoleUUID, string content, string roomNumber, int msgType)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_CHAT_MSG);

        msgBody.PutInt(channel);
        msgBody.PutLong(destRoleUUID);
        msgBody.PutString(content);
        msgBody.PutString(roomNumber);
        msgBody.PutInt(msgType);
        PlatformService.Send(msgBody);
    }
コード例 #6
0
    /**
     * 创建俱乐部
     * @param name 俱乐部名字
     * @param notice 公告
     * @param _type 类型 1 公开 2 需要申请  3 不可加入
     * @param ico 图标
     * @param limit 段位限制
     */
    public static void CG_CLUB_CREATE(string name, string notice, int _type, int ico, int limit)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_CLUB_CREATE);

        msgBody.PutString(name);
        msgBody.PutString(notice);
        msgBody.PutInt(_type);
        msgBody.PutInt(ico);
        msgBody.PutInt(limit);
        PlatformService.Send(msgBody);
    }
コード例 #7
0
    /**
     * 验证订单MOL
     * @param orderId 订单号
     * @param currencyCode 币种
     * @param amount 单位是分
     * @param paymentId MOL订单
     * @param virtualCurrencyAmount 发放的游戏币PID为-1的时候有效
     */
    public static void CG_VALIDATE_ORDER_MOL(long orderId, string currencyCode, int amount, string paymentId, string virtualCurrencyAmount)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_VALIDATE_ORDER_MOL);

        msgBody.PutLong(orderId);
        msgBody.PutString(currencyCode);
        msgBody.PutInt(amount);
        msgBody.PutString(paymentId);
        msgBody.PutString(virtualCurrencyAmount);
        PlatformService.Send(msgBody);
    }
コード例 #8
0
    /**
     * 验证订单亚马逊
     * @param amazonDeliveryList 道具奖励
     */
    public static void CG_ORDER_AMAZON_DELIVERY(ArrayList amazonDeliveryList)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_ORDER_AMAZON_DELIVERY);
        int           i;

        msgBody.PutShort((short)amazonDeliveryList.Count);
        for (i = 0; i < amazonDeliveryList.Count; i++)
        {
            msgBody.PutInt((amazonDeliveryList[i] as AmazonDelivery).productId);
            msgBody.PutString((amazonDeliveryList[i] as AmazonDelivery).receiptId);
            msgBody.PutString((amazonDeliveryList[i] as AmazonDelivery).userId);
        }
        PlatformService.Send(msgBody);
    }
コード例 #9
0
    /**
     * 客户端请求用户信息
     * @param userName 用户名字
     */
    public static void CG_QUERY_PLAYER_INFO_NAME(string userName)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_QUERY_PLAYER_INFO_NAME);

        msgBody.PutString(userName);
        PlatformService.Send(msgBody);
    }
コード例 #10
0
    /**
     * 从俱乐部列表加入俱乐部
     * @param clubId 俱乐部id
     */
    public static void CG_CLUB_JOIN2(string clubId)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_CLUB_JOIN2);

        msgBody.PutString(clubId);
        PlatformService.Send(msgBody);
    }
コード例 #11
0
    /**
     * 兑换码兑换礼包
     * @param code 兑换码
     */
    public static void CG_CONVERSION_CODE(string code)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_CONVERSION_CODE);

        msgBody.PutString(code);
        PlatformService.Send(msgBody);
    }
コード例 #12
0
    /**
     * 俱乐搜索
     * @param name 俱乐部名字
     */
    public static void CG_CLUB_SEARCH(string name)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_CLUB_SEARCH);

        msgBody.PutString(name);
        PlatformService.Send(msgBody);
    }
コード例 #13
0
    /**
     * 俱乐部留言礼物
     * @param msgId 留言id
     */
    public static void CG_CLUB_GET_GIFT(string msgId)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_CLUB_GET_GIFT);

        msgBody.PutString(msgId);
        PlatformService.Send(msgBody);
    }
コード例 #14
0
    /**
     * 俱乐留言板发送
     * @param msg 内容
     */
    public static void CG_CLUB_NOTE_SEND(string msg)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_CLUB_NOTE_SEND);

        msgBody.PutString(msg);
        PlatformService.Send(msgBody);
    }
コード例 #15
0
ファイル: MailCGMessage.cs プロジェクト: npf888/game
    /**
     * 客户端请求发送邮件
     * @param roleId 目标人id
     * @param content 邮件内容
     * @param title 邮件标题
     * @param randReward 邮件奖励
     */
    public static void CG_SEND_MAIL(long roleId, string content, string title, ArrayList randReward)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_SEND_MAIL);
        int           i;

        msgBody.PutLong(roleId);
        msgBody.PutString(content);
        msgBody.PutString(title);
        msgBody.PutShort((short)randReward.Count);
        for (i = 0; i < randReward.Count; i++)
        {
            msgBody.PutInt((randReward[i] as RandRewardData).rewardId);
            msgBody.PutInt((randReward[i] as RandRewardData).rewardCount);
        }
        PlatformService.Send(msgBody);
    }
コード例 #16
0
    /**
     * 玩家现在使用版本
     * @param version
     */
    public static void CG_CLIENT_VERSION(string version)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_CLIENT_VERSION);

        msgBody.PutString(version);
        PlatformService.Send(msgBody);
    }
コード例 #17
0
    /**
     * 银行 输入验证码 确认
     * @param code 验证码
     */
    public static void CG_BANK_MAKE_SURE_IDENTIFYING_CODE(string code)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_BANK_MAKE_SURE_IDENTIFYING_CODE);

        msgBody.PutString(code);
        PlatformService.Send(msgBody);
    }
コード例 #18
0
    /**
     * 输入银行密码 登录
     * @param bankPassword 银行密码
     */
    public static void CG_BANK_LOGIN(string bankPassword)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_BANK_LOGIN);

        msgBody.PutString(bankPassword);
        PlatformService.Send(msgBody);
    }
コード例 #19
0
    /**
     * 搜索私人房间(根据房间号)
     * @param roomNumber 房间号
     */
    public static void CG_ROOM_PRI_SEARCH(string roomNumber)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_ROOM_PRI_SEARCH);

        msgBody.PutString(roomNumber);
        PlatformService.Send(msgBody);
    }
コード例 #20
0
    /**
     * 更改名字
     * @param name 玩家名字
     */
    public static void CG_HUMAN_CHANGE_NAME(string name)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_HUMAN_CHANGE_NAME);

        msgBody.PutString(name);
        PlatformService.Send(msgBody);
    }
コード例 #21
0
    /**
     * 博趣平台入口
     * @param pcOrMobile 是pc端还是手机端,PC端传入'pc',手机端传入'mobile'
     */
    public static void CG_BAZOO_BOQU(string pcOrMobile)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_BAZOO_BOQU);

        msgBody.PutString(pcOrMobile);
        PlatformService.Send(msgBody);
    }
コード例 #22
0
    /**
     * 更改图像
     * @param img 玩家图像
     */
    public static void CG_HUMAN_CHANGE_IMG(string img)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_HUMAN_CHANGE_IMG);

        msgBody.PutString(img);
        PlatformService.Send(msgBody);
    }
コード例 #23
0
    /**
     * 进入老虎机
     * @param slotId 老虎机Id
     * @param roomId 房间ID
     */
    public static void CG_SLOT_ENTER_ROOM(int slotId, string roomId)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_SLOT_ENTER_ROOM);

        msgBody.PutInt(slotId);
        msgBody.PutString(roomId);
        PlatformService.Send(msgBody);
    }
コード例 #24
0
    /**
     * vip开房
     * @param vipId vip房间类型d
     * @param password 密码
     */
    public static void CG_VIP_CREATE_ROOM(int vipId, string password)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_VIP_CREATE_ROOM);

        msgBody.PutInt(vipId);
        msgBody.PutString(password);
        PlatformService.Send(msgBody);
    }
コード例 #25
0
    /**
     * 修改角色年龄国际
     * @param countries 国籍
     * @param age 年龄
     */
    public static void CG_CHANEAGE_COUNTRIES(string countries, int age)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_CHANEAGE_COUNTRIES);

        msgBody.PutString(countries);
        msgBody.PutInt(age);
        PlatformService.Send(msgBody);
    }
コード例 #26
0
    /**
     * 德州加入vip房间
     * @param vipId vipId
     * @param password 密码
     */
    public static void CG_JOIN_TEXAS_VIP(long vipId, string password)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_JOIN_TEXAS_VIP);

        msgBody.PutLong(vipId);
        msgBody.PutString(password);
        PlatformService.Send(msgBody);
    }
コード例 #27
0
    /**
     * 调用 魔法表情
     * @param sendPassportId 谁发的
     * @param receivePassportId 给谁发的
     * @param magicFace 发送的魔法表情
     */
    public static void CG_BAZOO_MAGIC_FACE(long sendPassportId, long receivePassportId, string magicFace)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_BAZOO_MAGIC_FACE);

        msgBody.PutLong(sendPassportId);
        msgBody.PutLong(receivePassportId);
        msgBody.PutString(magicFace);
        PlatformService.Send(msgBody);
    }
コード例 #28
0
    /**
     * 创建房间(创建的房间都是私人房间)
     * @param modeType 模式
     * @param bet 倍数
     * @param password 创建房间的 密码
     */
    public static void CG_ROOM_CREATE(int modeType, int bet, string password)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_ROOM_CREATE);

        msgBody.PutInt(modeType);
        msgBody.PutInt(bet);
        msgBody.PutString(password);
        PlatformService.Send(msgBody);
    }
コード例 #29
0
    /**
     * facebook好友
     * @param friendList 好友
     */
    public static void CG_FACEBOOK_FRIENDS_SYNC(ArrayList friendList)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_FACEBOOK_FRIENDS_SYNC);
        int           i;

        msgBody.PutShort((short)friendList.Count);
        for (i = 0; i < friendList.Count; i++)
        {
            msgBody.PutString(friendList[i].ToString());
        }
        PlatformService.Send(msgBody);
    }
コード例 #30
0
    /**
     * fb邀请
     * @param fbInviteIdList 好友列表
     */
    public static void CG_FB_INVITE(ArrayList fbInviteIdList)
    {
        OutputMessage msgBody = new OutputMessage(NetMessageType.CG_FB_INVITE);
        int           i;

        msgBody.PutShort((short)fbInviteIdList.Count);
        for (i = 0; i < fbInviteIdList.Count; i++)
        {
            msgBody.PutString(fbInviteIdList[i].ToString());
        }
        PlatformService.Send(msgBody);
    }