SaveToFile() public method

public SaveToFile ( string file ) : void
file string
return void
Example #1
0
        void SaveMacroState(PlayerMacroState macro)
        {
            if (macro == null)
            throw new ArgumentNullException("macro");

              var filename = Path.Combine("saves", string.Format("{0}.xml", macro.Client.Name.Trim()));
              var state = new SavedMacroState(macro);

              state.SaveToFile(filename);
        }