예제 #1
0
 public static bool Equals(this MonoRectangle self, SadRogueRectangle other)
 => self.X == other.X && self.Y == other.Y && self.Width == other.Width && self.Height == other.Height;
예제 #2
0
 public static MonoRectangle ToMonoRectangle(this SadRogueRectangle self)
 => new MonoRectangle(self.X, self.Y, self.Width, self.Height);
 public static bool Equals(this IntRect self, SadRogueRectangle other)
 => self.Left == other.X && self.Top == other.Y && self.Width == other.Width && self.Height == other.Height;
 public static bool Equals(this SadRogueRectangle self, IntRect other)
 => self.X == other.Left && self.Y == other.Top && self.Width == other.Width && self.Height == other.Height;
 public static IntRect ToIntRect(this SadRogueRectangle self)
 => new IntRect(self.X, self.Y, self.X + self.Width, self.Y + self.Height);
예제 #6
0
 public static bool Matches(this SadRogueRectangle self, MonoRectangle other)
 => self.X == other.X && self.Y == other.Y && self.Width == other.Width && self.Height == other.Height;