mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-14 15:28:11 -04:00
26a9d1e8b1
* Fixed LevelTypes load * Update ResourcePaths.go * Added DCC loading support
17 lines
215 B
Go
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
|
|
}
|