You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
602 B
21 lines
602 B
namespace ET |
|
{ |
|
[ConsoleHandler(ConsoleMode.ReloadDll)] |
|
public class ReloadDllConsoleHandler: IConsoleHandler |
|
{ |
|
public async ETTask Run(ModeContex contex, string content) |
|
{ |
|
switch (content) |
|
{ |
|
case ConsoleMode.ReloadDll: |
|
contex.Parent.RemoveComponent<ModeContex>(); |
|
|
|
Game.EventSystem.Add(DllHelper.GetHotfixAssembly()); |
|
Game.EventSystem.Load(); |
|
break; |
|
} |
|
|
|
await ETTask.CompletedTask; |
|
} |
|
} |
|
} |