internal static void OnPersonaState(Bot bot, SteamFriends.PersonaStateCallback callback)
{
if (bot == null) {
ASF.ArchiLogger.LogNullError(nameof(bot));
return;
}
if (callback == null) {
bot.ArchiLogger.LogNullError(nameof(callback));
return;
}
BotStatusForm form;
if (!BotStatusForm.BotForms.TryGetValue(bot.BotName, out form)) {
return;
}
form.OnStateUpdated(callback);
}