20 lines
260 B
Go
20 lines
260 B
Go
|
package soko
|
||
|
|
||
|
import "opslag.de/schobers/geom"
|
||
|
|
||
|
type Entity struct {
|
||
|
ID int
|
||
|
Pos geom.Point
|
||
|
Typ EntityType
|
||
|
}
|
||
|
|
||
|
type Entities map[int]Entity
|
||
|
|
||
|
func (e Entities) Clone() Entities {
|
||
|
clone := Entities{}
|
||
|
for id, e := range e {
|
||
|
clone[id] = e
|
||
|
}
|
||
|
return clone
|
||
|
}
|