seperated client and server state, input mapper

This commit is contained in:
Reid 2023-07-20 14:48:17 -07:00
parent 44f63f8deb
commit d5b77a9044
10 changed files with 104 additions and 16 deletions

View file

@ -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
}