示例#1
0
文件: Mod.cs 项目: hamada147/ModAPI
 public Header(Mod mod, string header)
 {
     this.Mod = mod;
     try
     {
         XDocument configuration = XDocument.Parse(header);
         SetXML(configuration);
         Debug.Log("Game: " + this.Mod.Game.GameConfiguration.ID, "Successfully parsed mod header of mod \"" + this.ID + "\".");
     }
     catch (Exception e)
     {
         Debug.Log("Game: " + this.Mod.Game.GameConfiguration.ID, "Error while parsing header of mod \"" + this.ID + "\". Filename: \"" + this.Mod.FileName + "\"", Debug.Type.WARNING);
         this.Valid = false;
     }
 }
示例#2
0
文件: Mod.cs 项目: hamada147/ModAPI
 public AddClass(Mod mod)
 {
     this.Mod = mod;
 }
示例#3
0
文件: Mod.cs 项目: hamada147/ModAPI
 public Header(Mod mod)
 {
     this.Mod = mod;
 }
示例#4
0
文件: Mod.cs 项目: hamada147/ModAPI
 public InjectInto(Mod mod)
 {
     this.Mod = mod;
 }
示例#5
0
文件: Mod.cs 项目: hamada147/ModAPI
 public Button(Mod mod)
 {
     this.Mod = mod;
 }
示例#6
0
文件: Mod.cs 项目: hamada147/ModAPI
 public AddMethod(Mod mod)
 {
     this.Mod = mod;
 }
示例#7
0
文件: Mod.cs 项目: hamada147/ModAPI
 public AddField(Mod mod)
 {
     this.Mod = mod;
 }