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); } } }
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); }