Example #1
0
        public void LoadFromFile(string path)
        {
            GameConfig cfg;

            using (FileStream stm = new FileStream(path, FileMode.Open)) {
                cfg = cfgFormatter.Deserialize(stm);
            }
            this.wcWindowConfig = cfg.WindowConfig;
        }
Example #2
0
 public GameConfig(WindowConfig wcWindowConfig) : this()
 {
     this.wcWindowConfig = wcWindowConfig;
 }