Beispiel #1
0
 public static void AddModel(GameWorldRecord model)
 {
     bizGameWorldRecord.Instance().AddModel(model);
 }
Beispiel #2
0
 public void AddModel(GameWorldRecord model)
 {
     SysCache.Clear();
     dal.Add(model);
 }
Beispiel #3
0
 /// <summary>
 /// 给用户发世界记录奖励
 /// </summary>
 /// <param name="model"></param>
 public static void RecordToUserAward(GameWorldRecord model)
 {
     bizGameWorldRecord.Instance().RecordToUserAward(model);
 }
Beispiel #4
0
 public void RecordToUserAward(GameWorldRecord model)
 {
     SysCache.Clear();
     dal.RecordToUserAward(model);
 }
Beispiel #5
0
        public ActionResult GameSuccess()
        {
            string gameName = Request["gameName"];
            string ftid = Request["ftid"];
            string GameRemark = Request["GameRemark"];
            string SmallImageUrl = Request["SmallImageUrl"];
            string BigImageUrl = Request["BigImageUrl"];
            string GameUrl = Request["GameUrl"];
            string GameWidth = Request["GameWidth"];
            string GameHight = Request["GameHight"];
            string initFrame = Request["initFrame"];
            string startFrame = Request["startFrame"];
            string overType = Request["overType"];
            string overFrame = Request["overFrame"];
            string overAttr = Request["overAttr"];
            string score = Request["score"];
            string noPreload = Request["noPreload"];
            string bgColor = Request["bgColor"];
            string res = Request["res"];
            string startFlag = Request["startFlag"];
            string IsAsc = Request["IsAsc"];
            string IsRecommend = Request["IsRecommend"];

            FlashGame model = new FlashGame();
            model.bgColor = bgColor;
            model.BigImageUrl = BigImageUrl;
            model.ftid = MainFunc.GetInteger(ftid);
            model.GameHight = MainFunc.GetInteger(GameHight);
            model.GameName = gameName;
            model.GameRemark = GameRemark;
            model.GameUrl = GameUrl;
            model.GameWidth = MainFunc.GetInteger(GameWidth);
            model.initFrame = initFrame;
            model.IsAsc = (byte)MainFunc.GetInteger(IsAsc);
            model.IsRecommend = (byte)MainFunc.GetInteger(IsRecommend);
            model.noPreload = noPreload;
            model.overAttr = overAttr;
            model.overFrame = overFrame;
            model.overType = overType;
            model.res = res;
            model.score = score;
            model.SmallImageUrl = SmallImageUrl;
            model.startFlag = startFlag;
            model.startFrame = startFrame;

            int fid = GameFacade.Add(model);

            GameWorldRecord r = new GameWorldRecord();
            r.fid = fid;
            r.PoAwards = 100000;
            r.UserId = 1000;
            r.UserName = "******";
            r.WorldRecord = MainFunc.GetDecimal(Request["WorldRecord"]);

            GameWorldRecordFacade.AddModel(r);

            return RedirectToAction("GameAdd", "PlayGame");
        }