Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        public RankingListDto scenesRanking(int scenesId)
        {
            List <string> args = new List <string>();

            args.Add(scenesId.ToString());
            return(ProxyObj.CreateHttpProxy <RankingListDto>(this.GetType(), "scenesRanking", args, -7));
        }
Beispiel #2
0
        /// <summary>
        /// 打开摇钱树面板
        /// </summary>
        public MoneyTreeOpenDto open(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <MoneyTreeOpenDto>(this.GetType(), "open", args, -7));
        }
Beispiel #3
0
        /// <summary>
        /// 签到转盘
        /// </summary>
        public SignInDto dial(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <SignInDto>(this.GetType(), "dial", args, -7));
        }
Beispiel #4
0
        /// <summary>
        /// 打开成长礼包 回发礼包信息
        /// </summary>
        public GiftBagInfoDto open(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <GiftBagInfoDto>(this.GetType(), "open", args, -7));
        }
Beispiel #5
0
        /// <summary>
        ///
        /// </summary>
        public DiceRoomInfiDto enter(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <DiceRoomInfiDto>(this.GetType(), "enter", args, -12));
        }
Beispiel #6
0
        /// <summary>
        /// 领取奖励
        /// </summary>
        public MoneyTreeAwardDto award(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <MoneyTreeAwardDto>(this.GetType(), "award", args, -7));
        }
Beispiel #7
0
        /// <summary>
        /// 查看轮盘信息
        /// </summary>
        public RebateDialInfoDto dialInfo(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <RebateDialInfoDto>(this.GetType(), "dialInfo", args, -7));
        }
Beispiel #8
0
        /// <summary>
        /// 查看座驾
        /// </summary>
        public ItemListDto playerAutos(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <ItemListDto>(this.GetType(), "playerAutos", args, -7));
        }
Beispiel #9
0
        /// <summary>
        /// 查看道具
        /// </summary>
        public PropDto playerPropInfo(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <PropDto>(this.GetType(), "playerPropInfo", args, -7));
        }
Beispiel #10
0
        /// <summary>
        /// 点击领取礼包奖励
        /// </summary>
        public ItemListDto receiveAward(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <ItemListDto>(this.GetType(), "receiveAward", args, -7));
        }
Beispiel #11
0
        /// <summary>
        /// 关闭天天乐界面的狮虎调用这个方法
        /// </summary>
        public bool exit(long uid)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            return(ProxyObj.CreateHttpProxy <bool>(this.GetType(), "exit", args, -11));
        }
Beispiel #12
0
        /// <summary>
        ///
        /// </summary>
        public BankDto draw(long uid, long gold)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            args.Add(gold.ToString());
            return(ProxyObj.CreateHttpProxy <BankDto>(this.GetType(), "draw", args, -7));
        }
Beispiel #13
0
        /// <summary>
        /// 玩家下线
        /// </summary>
        public bool loginOut(long uid, string secretKey)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            args.Add(secretKey.ToString());
            return(ProxyObj.CreateHttpProxy <bool>(this.GetType(), "loginOut", args, -100));
        }
Beispiel #14
0
        /// <summary>
        /// 抽奖 num:抽将次数
        /// </summary>
        public RebateDialDto luckyDraw(long uid, int num)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            args.Add(num.ToString());
            return(ProxyObj.CreateHttpProxy <RebateDialDto>(this.GetType(), "luckyDraw", args, -7));
        }
Beispiel #15
0
        /// <summary>
        /// 进入房间
        /// </summary>
        public Game1PlayerRoomDto enterRoom(long uid, int scenesId)
        {
            List <string> args = new List <string>();

            args.Add(uid.ToString());
            args.Add(scenesId.ToString());
            return(ProxyObj.CreateHttpProxy <Game1PlayerRoomDto>(this.GetType(), "enterRoom", args, -8));
        }
Beispiel #16
0
        /// <summary>
        /// 登陆 phoneIsmi:手机唯一标识码
        /// </summary>
        public LoginDto login(string account, string password, string phoneImsi, string version)
        {
            List <string> args = new List <string>();

            args.Add(account.ToString());
            args.Add(password.ToString());
            args.Add(phoneImsi.ToString());
            args.Add(version.ToString());
            return(ProxyObj.CreateHttpProxy <LoginDto>(this.GetType(), "login", args, -7));
        }
Beispiel #17
0
        /// <summary>
        /// 注册 phoneIsmi:手机唯一标识码
        /// </summary>
        public LoginDto regist(string account, string password, string userName, string headImgUrl, string sex, string phoneImsi, string version)
        {
            List <string> args = new List <string>();

            args.Add(account.ToString());
            args.Add(password.ToString());
            args.Add(userName.ToString());
            args.Add(headImgUrl.ToString());
            args.Add(sex.ToString());
            args.Add(phoneImsi.ToString());
            args.Add(version.ToString());
            return(ProxyObj.CreateHttpProxy <LoginDto>(this.GetType(), "regist", args, -7));
        }
Beispiel #18
0
    public static void loadStaticDatable()
    {
        //if()最新版本
        // String data= PlayerPrefs.GetString("Data");
        //else {
        // DbDatableInfo info = InvokeService.Proxy<DbDatableInfo>();
        DatableModelListDto dto = ProxyObj.CreateHttpProxy <DatableModelListDto>(typeof(DbDatableInfo), "getData", null, -7);
        //DatableModelListDto dto = info.getData();
        List <DatableModelDto> dtos = dto.msgList;

        if (dtos != null && dtos.Count > 0)
        {
            foreach (DatableModelDto d in dtos)
            {
                Type t = Type.GetType(d.objType);
                // IType t = ILMgr.Instance.appDomain.LoadedTypes[d.objType];
                // object t = StaticDataHandler.Instance.staticDataDic[d.objType];

                Dictionary <int, object> dice = new Dictionary <int, object>();

                foreach (string s in d.jsonMsg)
                {
                    object o = JsonMapper.DeserializeObject(s, t);

                    DataTableMessage dataTable = (DataTableMessage)o;
                    if (dice.ContainsKey(dataTable.Id()))
                    {
                        dice.Remove(dataTable.Id());

                        dice.Add(dataTable.Id(), dataTable);
                    }
                    else
                    {
                        dice.Add(dataTable.Id(), dataTable);
                    }
                }

                StaticConfigMessage.Instance.put(t, dice);
            }
        }
        // string str = JsonConvert.SerializeObject(dto);
        string str = JsonMapper.ToJson(dto);

        if (PlayerPrefs.HasKey("Data"))
        {
            PlayerPrefs.DeleteKey("Data");
            PlayerPrefs.SetString("Data", str);
        }
        //}
    }
Beispiel #19
0
        /// <summary>
        ///
        /// </summary>
        public DatableModelListDto getData()
        {
            List <string> args = new List <string>();

            return(ProxyObj.CreateHttpProxy <DatableModelListDto>(this.GetType(), "getData", args, -7));
        }
Beispiel #20
0
        /// <summary>
        ///
        /// </summary>
        public RankingListDto goldRanking()
        {
            List <string> args = new List <string>();

            return(ProxyObj.CreateHttpProxy <RankingListDto>(this.GetType(), "goldRanking", args, -7));
        }
Beispiel #21
0
        /// <summary>
        ///
        /// </summary>
        public VersionDto versionChech()
        {
            List <string> args = new List <string>();

            return(ProxyObj.CreateHttpProxy <VersionDto>(this.GetType(), "versionChech", args, -7));
        }