Closed yohamta closed 11 months ago
Decouple the layering functionality from the ecs package.
ecs
features/layers
func LayerTag(world World, layer LayerID) donburi.IComponentType
func Create(world World, components ...donburi.ComponentType)
func CreateMany(world World, components ...donburi.ComponentType)
func AddTo(world World, layer LayerID, entry *donburi.Entry)
func NewQuery(layer LayerID, filter Filter) *query.Query
features/layer
Decouple the layering functionality from the
ecs
package.features/layers
packagefunc LayerTag(world World, layer LayerID) donburi.IComponentType
func Create(world World, components ...donburi.ComponentType)
donburi.Entityfunc CreateMany(world World, components ...donburi.ComponentType)
func AddTo(world World, layer LayerID, entry *donburi.Entry)
func NewQuery(layer LayerID, filter Filter) *query.Query
ecs
package to use thefeatures/layer
pckage