コード例 #1
0
ファイル: GameController.cs プロジェクト: NaterTots/Pikkit
 public static void RemoveController(IPersistedController c)
 {
     if (ContainsController(c.GetType()))
     {
         _controllers.Remove(c.GetType());
     }
 }
コード例 #2
0
ファイル: GameController.cs プロジェクト: NaterTots/Pikkit
 public static void AddController(IPersistedController c)
 {
     // Only allow one object of each type
     if (!ContainsController(c.GetType()))
     {
         _controllers.Add(c.GetType(), c);
     }
 }