コード例 #1
0
ファイル: ActiveModsList.cs プロジェクト: CarJem/AIR-API
        public void Save(AIRActiveMods CurrentActiveMods)
        {
            ActiveClass = CurrentActiveMods;
            string output = Newtonsoft.Json.JsonConvert.SerializeObject(CurrentActiveMods, Newtonsoft.Json.Formatting.Indented);

            File.WriteAllText(ConfigPath, output);
        }
コード例 #2
0
ファイル: ActiveModsList.cs プロジェクト: CarJem/AIR-API
 public ActiveModsList(AIRActiveMods data, string path)
 {
     ActiveClass = data;
     ConfigPath  = path;
 }