boxbrawl/entity/once.go

13 lines
226 B
Go
Raw Normal View History

2023-01-03 20:09:14 +00:00
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
}