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 TypeIsPlayer
TypePlayer TypePlayer
TypeInput TypeInput
TypeInputBuffer
TypeCommandString TypeCommandString
TypeEntity TypeEntity
TypeEvent TypeEvent
@ -31,6 +30,7 @@ const (
TypeAccount TypeAccount
TypePassword TypePassword
TypeExpectingDirectInput
) )
type Direction byte type Direction byte

View file

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