seperated client and server state, input mapper
This commit is contained in:
parent
44f63f8deb
commit
d5b77a9044
10 changed files with 104 additions and 16 deletions
|
@ -1,8 +1,21 @@
|
|||
/* eslint-disable roblox-ts/no-private-identifier */
|
||||
|
||||
import { InputKind } from "ReplicatedStorage/inputKind"
|
||||
|
||||
/**
|
||||
* The global ECS state.
|
||||
* The client ECS state.
|
||||
*/
|
||||
export class State {
|
||||
export class clientState {
|
||||
[index: string]: unknown,
|
||||
// eslint-disable-next-line roblox-ts/no-private-identifier
|
||||
debugEnabled = false
|
||||
isJumping = false
|
||||
isRunning = false
|
||||
lastProcessedCommand?: InputKind
|
||||
}
|
||||
|
||||
/**
|
||||
* The server ECS state.
|
||||
*/
|
||||
export class serverState {
|
||||
[index: string]: unknown
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue