示例#1
0
 public GameEndedReasonEventArgs(GameEndedReason reason)
     : this(reason, null)
 {
 }
示例#2
0
 public GameEndedReasonEventArgs(GameEndedReason reason, Color winningColor)
 {
     Reason  = reason;
     Outcome = winningColor is null ? GameOutcome.Draw : GetOutcome(winningColor);
 }