mirror of
https://github.com/mvvasilev/last_light.git
synced 2025-04-19 12:49:52 +03:00
17 lines
341 B
Go
17 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
|
|
}
|