本文整理汇总了C#中System.IO.File.getValue方法的典型用法代码示例。如果您正苦于以下问题:C# File.getValue方法的具体用法?C# File.getValue怎么用?C# File.getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.IO.File
的用法示例。
在下文中一共展示了File.getValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Load
public override void Load()
{
Name = "Endgame Enhancer";
Description = "Enhances the Endgame of Terraria.";
Author = "Nivek";
Version = "1.01";
TDSMBuild = 24; //Current Release - Working
string pluginFolder = Statics.PluginPath + Path.DirectorySeparatorChar + "TDSM";
//Create folder if it doesn't exist
CreateDirectory(pluginFolder);
//setup a new properties file
properties = new File(pluginFolder + Path.DirectorySeparatorChar + "tdsmplugin.properties");
properties.Load();
//properties.Save();
combatXP = new File(pluginFolder + Path.DirectorySeparatorChar + "combatXP.file");
combatXP.Load();
//combatXP.Save();
defenseXP = new File(pluginFolder + Path.DirectorySeparatorChar + "defenseXP.file");
defenseXP.Load();
//defenseXP.Save();
travelerXP = new File(pluginFolder + Path.DirectorySeparatorChar + "travelerXP.file");
travelerXP.Load();
//travelerXP.Save();
//read properties data
mobSpawn = properties.getValue("mobSpawn", true);
tileBreak = properties.getValue("tileBreak", true);
explosives = properties.getValue("explosives", true);
isEnabled = true;
}