mirror of
https://github.com/mvvasilev/last_light.git
synced 2025-04-19 20:59:51 +03:00
17 lines
309 B
Go
17 lines
309 B
Go
package component
|
|
|
|
import (
|
|
"mvvasilev/last_light/engine/ecs"
|
|
|
|
"github.com/gdamore/tcell/v2"
|
|
)
|
|
|
|
const ComponentType_InputComponent = ecs.ComponentType_1
|
|
|
|
type InputComponent struct {
|
|
KeyEvents []*tcell.EventKey
|
|
}
|
|
|
|
func (ic *InputComponent) Type() ecs.ComponentType {
|
|
return ComponentType_InputComponent
|
|
}
|