mirror: 上游快照导入
This commit is contained in:
commit
7475ccb467
86 files changed
+3213
No files matched your search
@@ -0,0 +1,33 @@
|
||||
namespace CSharpModBase
|
||||
{
|
||||
public static class Common
|
||||
{
|
||||
public const string LoaderDir = "CSharpLoader";
|
||||
public const string ModDir = "CSharpLoader\\Mods";
|
||||
public const string DataDir = "CSharpLoader\\Data";
|
||||
}
|
||||
|
||||
|
||||
public interface ICSharpMod
|
||||
{
|
||||
/// <summary>
|
||||
/// mod name
|
||||
/// </summary>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// mod version
|
||||
/// </summary>
|
||||
string Version { get; }
|
||||
|
||||
/// <summary>
|
||||
/// when mod loaded, will call OnInit
|
||||
/// </summary>
|
||||
void Init();
|
||||
/// <summary>
|
||||
/// when manamger reload mods, will call OnDeInit,
|
||||
///
|
||||
/// </summary>
|
||||
void DeInit();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user