예제 #1
0
        /// <summary>
        /// 加载星球世界基础信息
        /// </summary>
        /// <param name="planetNo"></param>
        /// <param name="planetSpaceTime"></param>
        /// <returns></returns>
        public PlanetWorldBaseInfo CongfigLoad(PlanetSpaceTime planetSpaceTime)
        {
            PlanetWorldBaseInfo worldBaseInfo = new PlanetWorldBaseInfo();

            worldBaseInfo.AreaTypes = GetAreaTypes();

            return(worldBaseInfo);
        }
예제 #2
0
        /// <summary>
        /// 降临
        /// </summary>
        /// <returns></returns>
        public ActionResult ComeTo()
        {
            PlanetSpaceTime time = null;

            SessionHelper.Add <HumanWorld>(WebConstants.SESSION_KEY_WORLD, _humanWorldService.GetHumanWorld(CurrPassport.PassportNo, time));

            ComeToModelFactory.CreateComeToModelsByOpenGalaxys(_planetWorldService);
            return(RedirectToAction("ComeToGalaxy", "ComeTo"));
        }
        public HumanWorld GetHumanWorld(string PassportNo, PlanetSpaceTime planetSpaceTime)
        {
            HumanWorld world = new HumanWorld();

            world.OutsideWorld = _planetWorldService.GetPlanetWorld(planetSpaceTime);


            return(world);
        }
예제 #4
0
        /// <summary>
        /// 获取星球世界
        /// </summary>
        /// <param name="planetNo"></param>
        /// <param name="planetSpaceTime"></param>
        /// <returns></returns>
        public PlanetWorld GetPlanetWorld(PlanetSpaceTime planetSpaceTime)
        {
            PlanetWorld planetWorld = new PlanetWorld()
            {
                Areas = GetAreas()
            };


            return(planetWorld);
        }
예제 #5
0
        public ActionResult GoWorld()
        {
            PlanetSpaceTime time = null;

            var humanWorld = _humanWorldService.GetHumanWorld(CurrPassport.PassportNo, time);

            SessionHelper.Add <HumanWorld>(WebConstants.SESSION_KEY_WORLD, humanWorld);

            return(RedirectToAction("ComeToWorld", "Worlds"));
        }
        /// <summary>
        /// 获取星球世界
        /// </summary>
        /// <param name="planetNo"></param>
        /// <param name="planetSpaceTime"></param>
        /// <returns></returns>
        public PlanetWorld GetPlanetWorld(PlanetSpaceTime planetSpaceTime)
        {
            List <PlanetTime> list = new List <PlanetTime>();

            list.Add(new PlanetTime(2017.96M, 14.42M));
            var xml = XmlHelper.LT2XML <PlanetTime>(list);



            PlanetWorld planetWorld = new PlanetWorld();

            return(planetWorld);
        }
예제 #7
0
 public void ComeOn(PlanetSpaceTime spaceTime)
 {
 }