コード例 #1
0
 protected override PlanshetViewData _getPlanetCollection(List <BuildItemUnitView> buildList)
 {
     return(PlanshetBodyHelper.SetBody(buildList,
                                       Resource.CommandCenter,
                                       BuildPrefixId + CommandCenterId,
                                       BuildTemplate, BuildTemplate));
 }
コード例 #2
0
 public PlanshetViewData SetPlanshetMoonInfo(IDbConnection connection, MoonInfoOut moon)
 {
     return(PlanshetBodyHelper.SetBody(
                moon, Resource.Moon,
                IdConstructor(moon.TypeNativeName, moon.Id),
                MapInfoTemplates[3],
                MapInfoTemplates[4]));
 }
コード例 #3
0
 public PlanshetViewData SetPlanshetPlanetInfo(IDbConnection connection, PlanetInfoOut planet)
 {
     return(PlanshetBodyHelper.SetBody(planet,
                                       Resource.Planet,
                                       IdConstructor(planet.TypeNativeName, planet.Id),
                                       MapInfoTemplates[3],
                                       MapInfoTemplates[4]));
 }
コード例 #4
0
 public PlanshetViewData SetPlanshetSectorInfo(IDbConnection connection, SectorInfoOut sector)
 {
     return(PlanshetBodyHelper.SetBody(
                sector, Resource.Sector,
                IdConstructor(sector.TypeNativeName, sector.Id),
                MapInfoTemplates[3],
                MapInfoTemplates[4]));
 }
コード例 #5
0
 public PlanshetViewData SetPlanshetGalaxyInfo(IDbConnection connection, GalaxyInfoOut galaxy)
 {
     return(PlanshetBodyHelper.SetBody(
                galaxy,
                Resource.Galaxy,
                IdConstructor(galaxy.TypeNativeName, galaxy.Id),
                MapInfoTemplates[3],
                MapInfoTemplates[4]));
 }
コード例 #6
0
        protected override PlanshetViewData _getMotherCollection(List <BuildItemUnitView> buildList)
        {
            var result = PlanshetBodyHelper.SetBody(buildList,
                                                    Resource.MotherIndustrialComplex,
                                                    BuildPrefixId + IndustrialComplexId,
                                                    BuildTemplate, BuildTemplate);

            result.IsMother = true;
            return(result);
        }
コード例 #7
0
        protected override PlanshetViewData _getMotherCollection(List <BuildItemUnitView> buildList)
        {
            var result = PlanshetBodyHelper.SetBody(buildList,
                                                    "tr_Laboratory",
                                                    BuildPrefixId + LaboratoryId,
                                                    BuildTemplate, BuildTemplate);

            result.IsMother = true;
            return(result);
        }
コード例 #8
0
        protected override PlanshetViewData _getPlanetCollection(List <BuildItemUnitView> buildList)
        {
            var result = PlanshetBodyHelper.SetBody(buildList,
                                                    Resource.SpaceShipyard,
                                                    BuildPrefixId + ShipyardId,
                                                    BuildTemplate, BuildTemplate);

            result.IsMother = false;
            return(result);
        }
 public IPlanshetViewData SetUserPlanshetProfile(IUserProfileOut profile)
 {
     return(PlanshetBodyHelper.SetBody(profile, "tr_Profile", "user_profile_" + profile.UserId,
                                       UserProfileOut.RootTemplate, UserProfileOut.RootTemplate));
 }