public static void AddDebugObjectScreen(IDebugObject debugObject) { if (drawablesScreen == null) { drawablesScreen = new Dictionary <Type, DebugCollection>(); } if (!drawablesScreen.ContainsKey(debugObject.GetType())) { drawablesScreen.Add(debugObject.GetType(), new DebugCollection()); } drawablesScreen[debugObject.GetType()].Add(debugObject); }
public static void AddDebugObjectWorldSingleCall(IDebugObject debugObject) { if (drawablesWorldSingleCall == null) { drawablesWorldSingleCall = new Dictionary <Type, DebugCollection>(); } if (!drawablesWorldSingleCall.ContainsKey(debugObject.GetType())) { drawablesWorldSingleCall.Add(debugObject.GetType(), new DebugCollection()); } drawablesWorldSingleCall[debugObject.GetType()].Add(debugObject); }
public static void AddDebugObjectWorld(IDebugObject debugNPC) { if (drawablesWorld == null) { drawablesWorld = new Dictionary <Type, DebugCollection>(); } if (!drawablesWorld.ContainsKey(debugNPC.GetType())) { drawablesWorld.Add(debugNPC.GetType(), new DebugCollection()); } drawablesWorld[debugNPC.GetType()].Add(debugNPC); }