コード例 #1
0
 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.");
 }
コード例 #2
0
 public FA GetAssignment(T assignmentId)
 {
     return(Assignments.FirstOrDefault(d => Equals(d.Id, assignmentId)));
 }