You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
390 B
Go
16 lines
390 B
Go
package wire
|
|
|
|
import (
|
|
"github.com/jordanorelli/astro-domu/internal/math"
|
|
)
|
|
|
|
// Room represents a 2-dimensional coordinate space.
|
|
type Room struct {
|
|
Name string `json:"name"`
|
|
Bounds math.Bounds `json:"bounds"`
|
|
Entities map[int]*Entity `json:"entities"`
|
|
}
|
|
|
|
func (r Room) Width() int { return r.Bounds.Width() }
|
|
func (r Room) Height() int { return r.Bounds.Height() }
|