From 09bcc5ee37bf193c544c6638db943b823f409f66 Mon Sep 17 00:00:00 2001 From: Marc Hernandez Date: Fri, 2 Aug 2024 13:47:20 -0700 Subject: [PATCH] Add the ability for records to be config classes --- cfg/Config.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cfg/Config.cs b/cfg/Config.cs index 621ae1d..40c7e53 100644 --- a/cfg/Config.cs +++ b/cfg/Config.cs @@ -34,7 +34,11 @@ namespace lib } - [Serializable] + public record class ConfigRec : ConfigBase + { + + } + public class Config : ConfigBase { @@ -45,7 +49,7 @@ namespace lib static public void startup( string filename ) { res.Mgr.register( load ); - res.Mgr.registerSub( typeof( Config ) ); + res.Mgr.registerSub( typeof( ConfigBase ) ); s_cfg = load( filename );