mirror of
https://github.com/mvvasilev/last_light.git
synced 2025-04-19 20:59:51 +03:00
18 lines
341 B
Go
18 lines
341 B
Go
|
package component
|
||
|
|
||
|
import (
|
||
|
"mvvasilev/last_light/engine"
|
||
|
"mvvasilev/last_light/engine/ecs"
|
||
|
)
|
||
|
|
||
|
const ComponentType_RenderableComponent = ecs.ComponentType_0
|
||
|
|
||
|
type DrawablesComponent struct {
|
||
|
Priority int
|
||
|
Drawables []engine.Drawable
|
||
|
}
|
||
|
|
||
|
func (rc *DrawablesComponent) Type() ecs.ComponentType {
|
||
|
return ComponentType_RenderableComponent
|
||
|
}
|