Area computation added.
This commit is contained in:
1 parent
43c2b35e30
commit
4b701e3ff3
1 file changed
+4
@@ -137,3 +137,7 @@ func (m *Manager) SceneCount() uint {
|
|||||||
func (m *Manager) GetScene(sceneId uint) Scene {
|
func (m *Manager) GetScene(sceneId uint) Scene {
|
||||||
return m.scenes[sceneId]
|
return m.scenes[sceneId]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (a *Area) Area() int {
|
||||||
|
return a.Height * a.Width
|
||||||
|
}
|
||||||
Reference in new issue
Block a user