快速入门和使用手册都在链接里了

image.png
根据命名空间快速绑定Ifix
在配置文件里,通过类型绑定
[IFix]
static IEnumerable<Type> hotfix
{
get
{
return new List<Type>()
{
typeof(Helloworld),
typeof(IFix.Test.Calculator),
//AnotherClass在Pro Standard Assets下,会编译到Assembly-CSharp-firstpass.dll下,用来演示多dll的修复
typeof(AnotherClass),
};
}
}
通过命名空间绑定
static List<string> allowSpaces = new List<string> {
null,
"",
"FSM",
"Dungeon",
"Battle",
"MapNameSpace",
"Event",
"SettlersEngine",
"Plugins.XAsset",
"Js"
};
static List<string> disallowType = new List<string>
{
};
[IFix]
static IEnumerable<Type> ToProcess
{
get
{
return (from type in Assembly.Load("Assembly-CSharp").GetTypes()
where allowSpaces.Contains(type.Namespace) && !disallowType.Contains(type.Name) && !type.Name.Contains("<")
select type);
}
}