using System; using System.Collections.Generic; namespace RageCoop.Client { internal enum TimeStamp { AddPeds, PedTotal, AddVehicles, VehicleTotal, SendPed, SendPedState, SendVehicle, SendVehicleState, UpdatePed, UpdateVehicle, CheckProjectiles, GetAllEntities, Receive, ProjectilesTotal, } internal static class Debug { public static Dictionary TimeStamps = new Dictionary(); private static int _lastNfHandle; static Debug() { foreach (TimeStamp t in Enum.GetValues(typeof(TimeStamp))) { TimeStamps.Add(t, 0); } } public static string Dump(this Dictionary d) { string s = ""; foreach (KeyValuePair kvp in d) { s+=kvp.Key+":"+kvp.Value+"\n"; } return s; } public static void ShowTimeStamps() { GTA.UI.Notification.Hide(_lastNfHandle); _lastNfHandle=GTA.UI.Notification.Show(Debug.TimeStamps.Dump()); } } }