internal override void VerifyPartners(Assignments assignments, Nanobot botS) { (Nanobot botP, Command cmdP) = assignments.FirstOrDefault( bot_cmd => bot_cmd.Item1.Pos == botS.Pos + mNd); Verify(botP != null, $"No bot exists at {botS.Pos + mNd}."); Verify(cmdP is FusionPCommand, $"{botP} is not performing FusionP."); }
public FA GetAssignment(T assignmentId) { return(Assignments.FirstOrDefault(d => Equals(d.Id, assignmentId))); }