private static void Host_OnHostEvent(object sender, BrokenMessageArgs e) { if (e.Category == HostEvents.LoadingPluginComplete) { Console.WriteLine("Plugin loaded: " + e.Message); } if (e.Category == HostEvents.LoadingAllPluginComplete) { Console.WriteLine("All plugins loaded"); } }
public void BroadcastAsHost(BrokenMessageArgs messageArguments) { OnHostEvent?.Invoke(this, messageArguments); }
public void BroadcastMessage(object sender, BrokenMessageArgs messageArguments) { OnPluginEvent?.Invoke(sender, messageArguments); }