public void UpdateAll()
{
try
{
foreach (KeyValuePair<PlayerChangeType, Action<PlayerChangeType>> updateMethod in updateMethods)
{
gui.valueUpdatePlayer[updateMethod.Key] = true;
updateMethod.Value(updateMethod.Key);
gui.valueUpdatePlayer[updateMethod.Key] = false;
}
}
catch (Exception e)
{
FiddlerUtils.ThrowErrorMessage(e, "Failed to update player values", gui.Plugin);
}
}