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
|
||||
TypePlayer
|
||||
TypeInput
|
||||
TypeInputBuffer
|
||||
TypeCommandString
|
||||
TypeEntity
|
||||
TypeEvent
|
||||
|
@ -31,6 +30,7 @@ const (
|
|||
|
||||
TypeAccount
|
||||
TypePassword
|
||||
TypeExpectingDirectInput
|
||||
)
|
||||
|
||||
type Direction byte
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue