Start direct input system

This commit is contained in:
Miroslav Vasilev 2025-07-01 09:28:32 +03:00
parent 1d10d963cd
commit d71bd8f5a2
2 changed files with 4 additions and 7 deletions

View file

@ -15,7 +15,6 @@ const (
TypeIsPlayer
TypePlayer
TypeInput
TypeInputBuffer
TypeCommandString
TypeEntity
TypeEvent
@ -31,6 +30,7 @@ const (
TypeAccount
TypePassword
TypeExpectingDirectInput
)
type Direction byte

View file

@ -42,11 +42,8 @@ func (i InputComponent) Type() ecs.ComponentType {
return TypeInput
}
type InputBufferComponent struct {
HandlingEscapeCode bool
InputBuffer string
}
type ExpectingDirectInput struct{}
func (ib InputBufferComponent) Type() ecs.ComponentType {
return TypeInputBuffer
func (e ExpectingDirectInput) Type() ecs.ComponentType {
return TypeExpectingDirectInput
}