コード例 #1
0
ファイル: DebugMapInspector.cs プロジェクト: Metibor/ualbion
 public DebugMapInspector AddBehaviour(IDebugBehaviour behaviour)
 {
     foreach (var type in behaviour.HandledTypes)
     {
         _behaviours[type] = behaviour.Handle;
     }
     return(this);
 }
コード例 #2
0
 public DebugMapInspector AddBehaviour(IDebugBehaviour behaviour)
 {
     if (behaviour == null)
     {
         throw new ArgumentNullException(nameof(behaviour));
     }
     foreach (var type in behaviour.HandledTypes)
     {
         _behaviours[type] = behaviour.Handle;
     }
     return(this);
 }
コード例 #3
0
 public DebugMapInspector AddBehaviour(IDebugBehaviour behaviour)
 {
     _behaviours[behaviour.HandledType] = behaviour.Handle;
     return(this);
 }