diff --git a/internal/game/data/common.go b/internal/game/data/common.go index 4ee92fc..9aa9c33 100644 --- a/internal/game/data/common.go +++ b/internal/game/data/common.go @@ -15,7 +15,6 @@ const ( TypeIsPlayer TypePlayer TypeInput - TypeInputBuffer TypeCommandString TypeEntity TypeEvent @@ -31,6 +30,7 @@ const ( TypeAccount TypePassword + TypeExpectingDirectInput ) type Direction byte diff --git a/internal/game/data/player.go b/internal/game/data/player.go index bfe90f5..e9c866b 100644 --- a/internal/game/data/player.go +++ b/internal/game/data/player.go @@ -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 }