public void LoadFromFile(string path) { GameConfig cfg; using (FileStream stm = new FileStream(path, FileMode.Open)) { cfg = cfgFormatter.Deserialize(stm); } this.wcWindowConfig = cfg.WindowConfig; }
public GameConfig(WindowConfig wcWindowConfig) : this() { this.wcWindowConfig = wcWindowConfig; }