public static void AddEntry(UserEntry entry) { if (Data.ContainsKey(entry.Id)) { Data[entry.Id] = entry; } else { Data.Add(entry.Id, entry); } Logger.Log($"Added user {entry.Id}", "SmashDB", LogSeverity.Info); }
public static void UpdateEntry(UserEntry entry) { Data[entry.Id] = entry; Logger.Log($"Updated user: {entry.Id} (S: {entry.Smashes}, P: {entry.Passes})", "SmashDB", LogSeverity.Info); }