示例#1
0
 public void FindMaleSockets(Construction.Target target, List <Socket_Base> sockets)
 {
     Socket_Base[] socketBaseArray = this.allSockets;
     for (int i = 0; i < (int)socketBaseArray.Length; i++)
     {
         Socket_Base socketBase = socketBaseArray[i];
         if (socketBase.male && !socketBase.maleDummy && socketBase.TestTarget(target))
         {
             sockets.Add(socketBase);
         }
     }
 }
示例#2
0
 public bool HasMaleSockets(Construction.Target target)
 {
     Socket_Base[] socketBaseArray = this.allSockets;
     for (int i = 0; i < (int)socketBaseArray.Length; i++)
     {
         Socket_Base socketBase = socketBaseArray[i];
         if (socketBase.male && !socketBase.maleDummy && socketBase.TestTarget(target))
         {
             return(true);
         }
     }
     return(false);
 }