1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-14 15:28:11 -04:00
OpenDiablo2/Common/Rectangle.go
Tim Sarbin 26a9d1e8b1
Added DCC loading support (#89)
* Fixed LevelTypes load
* Update ResourcePaths.go
* Added DCC loading support
2019-11-05 22:23:48 -05:00

17 lines
215 B
Go

package Common
type Rectangle struct {
Left int
Top int
Width int
Height int
}
func (v *Rectangle) Bottom() int {
return v.Top + v.Height
}
func (v *Rectangle) Right() int {
return v.Left + v.Width
}