コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }