File tree Expand file tree Collapse file tree
Common.Mod.Generator/Generators Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11## 0.6.0
22** :boom : Breaking Changes**
33- Made ` System.ShouldLoad ` abstract ([ #6 ] ( https://git.omni.ms/vintage-story-mods/common-mod/issues/6 ) )
4+ - Changed ` IRootConfig.Version ` from a method to a property ([ #19 ] ( https://git.omni.ms/vintage-story-mods/common-mod/issues/19 ) )
45
56** :sparkles : Features**
67- Added ` System.RegisterClasses ` virtual method ([ #5 ] ( https://git.omni.ms/vintage-story-mods/common-mod/issues/5 ) )
2223- Added ` IWorldAccessor.WalkBlocksCylinder ` extension method ([ #9 ] ( https://git.omni.ms/vintage-story-mods/common-mod/issues/9 ) )
2324- Added ` IWorldAccessor.WalkBlocksSphere ` extension method ([ #9 ] ( https://git.omni.ms/vintage-story-mods/common-mod/issues/9 ) )
2425
26+ ** :bug : Bug Fixes**
27+ - Correctly persist configuration version to disk ([ #19 ] ( https://git.omni.ms/vintage-story-mods/common-mod/issues/19 ) )
28+
2529** :hammer : Refactors**
2630- Cleanup pass ([ #1 ] ( https://git.omni.ms/vintage-story-mods/common-mod/issues/1 ) )
2731
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ namespace Common.Mod.Common.Config;
22
33public interface IRootConfig : IConfig
44{
5- public string Version ( ) ;
5+ public string Version { get ; }
6+
67 public RootConfigType Type ( ) ;
78}
Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ private static string GenerateConfig(RootConfigSpec spec)
7878 sourceBuilder . AppendLine ( ) ;
7979 sourceBuilder . AppendLine ( "#region IRootConfig" ) ;
8080 sourceBuilder . AppendLine ( ) ;
81- sourceBuilder . AppendLine ( $ "public string Version() => \" { spec . Version } \" ;") ;
81+ sourceBuilder . AppendLine ( $ "public string Version {{ get; }} = \" { spec . Version } \" ;") ;
82+ sourceBuilder . AppendLine ( ) ;
8283 sourceBuilder . AppendLine ( $ "public RootConfigType Type() => RootConfigType.{ spec . Type } ;") ;
8384 sourceBuilder . AppendLine ( ) ;
8485 sourceBuilder . AppendLine ( "#endregion IRootConfig" ) ;
You can’t perform that action at this time.
0 commit comments