42 lines
692 B
TypeScript
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
|
|
}
|
|
}
|
|
} |