Start direct input system
This commit is contained in:
parent
1d10d963cd
commit
d71bd8f5a2
2 changed files with 4 additions and 7 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue