Renderer/assets/Scripts/client/player/player.ts
2025-05-16 11:19:53 -04:00

42 lines
692 B
TypeScript

/**
* Overall state of the player's controls
*/
export interface PlayerControlState {
/**
* State of the room tool
*/
roomTool: RoomToolState,
}
/**
* State for the room tool
*/
export interface RoomToolState {
/**
* The currently selected functionality of the room tool
*/
currentState: number,
}
/**
* Overall state for the client player
*/
export interface ClientPlayer {
/**
* State of controls for the player
*/
controlState: PlayerControlState,
}
/**
* Actual player control state
*/
export const defaultPlayerState: ClientPlayer = {
controlState: {
roomTool: {
currentState: 0
}
}
}