mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Work on GUI
There is still a long way till it's done...
This commit is contained in:
21
GUI/Events.cs
Normal file
21
GUI/Events.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using GUI;
|
||||
using SteamKit2;
|
||||
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace ArchiSteamFarm {
|
||||
internal static class Events {
|
||||
internal static void OnStateUpdated(Bot bot, SteamFriends.PersonaStateCallback callback) {
|
||||
if ((bot == null) || (callback == null)) {
|
||||
Logging.LogNullError(nameof(bot) + " || " + nameof(callback));
|
||||
return;
|
||||
}
|
||||
|
||||
BotStatusForm form;
|
||||
if (!BotStatusForm.BotForms.TryGetValue(bot.BotName, out form)) {
|
||||
return;
|
||||
}
|
||||
|
||||
form.OnStateUpdated(callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user