浏览代码

dotnet-format

/2.0-verified
Chris Goy 3 年前
当前提交
8aaa2f15
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      com.unity.ml-agents/Runtime/Integrations/Match3/AbstractBoard.cs

6
com.unity.ml-agents/Runtime/Integrations/Match3/AbstractBoard.cs


/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns>True if all fields are less than or equal.</returns>
public static bool operator<=(BoardSize lhs, BoardSize rhs)
public static bool operator <=(BoardSize lhs, BoardSize rhs)
{
return lhs.Rows <= rhs.Rows && lhs.Columns <= rhs.Columns && lhs.NumCellTypes <= rhs.NumCellTypes &&
lhs.NumSpecialTypes <= rhs.NumSpecialTypes;

/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns>True if all fields are greater than or equal.</returns>
public static bool operator>=(BoardSize lhs, BoardSize rhs)
public static bool operator >=(BoardSize lhs, BoardSize rhs)
{
return lhs.Rows >= rhs.Rows && lhs.Columns >= rhs.Columns && lhs.NumCellTypes >= rhs.NumCellTypes &&
lhs.NumSpecialTypes >= rhs.NumSpecialTypes;

using (TimerStack.Instance.Scoped("SimpleIsMoveValid"))
{
var moveVal = GetCellType(move.Row, move.Column);
var(otherRow, otherCol) = move.OtherCell();
var (otherRow, otherCol) = move.OtherCell();
var oppositeVal = GetCellType(otherRow, otherCol);
// Simple check - if the values are the same, don't match

正在加载...
取消
保存