Example #1
0
        /// <summary>
        /// 创建降临对象根据开放的星系
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static ComeToModels CreateComeToModelsByOpenGalaxys(IPlanetWorldService planetWorldService)
        {
            var model = new ComeToModels().SetGalaxys(planetWorldService.GetOpenGalaxys());

            UpdateComeToModels(model);
            return(model);
        }
Example #2
0
 /// <summary>
 /// 更新降临的信息
 /// </summary>
 /// <param name="comeToModels"></param>
 public static ComeToModels UpdateComeToModels(ComeToModels model)
 {
     SessionHelper.Add <ComeToModels>(WebConstants.SESSION_KEY_COME_TO_MODEL, model);
     return(model);
 }