13 lines
226 B
Go
13 lines
226 B
Go
|
package entity
|
||
|
|
||
|
import (
|
||
|
"code.rocketnine.space/tslocum/boxbrawl/component"
|
||
|
"code.rocketnine.space/tslocum/gohan"
|
||
|
)
|
||
|
|
||
|
func NewOnceEntity() gohan.Entity {
|
||
|
e := gohan.NewEntity()
|
||
|
e.AddComponent(&component.Once{})
|
||
|
return e
|
||
|
}
|