30 lines
468 B
TypeScript
30 lines
468 B
TypeScript
|
|
|
|
/**
|
|
* Overall state of the player's controls
|
|
*/
|
|
interface PlayerControlState {
|
|
/**
|
|
* State of the room tool
|
|
*/
|
|
roomTool: RoomToolState,
|
|
}
|
|
|
|
/**
|
|
* State for the room tool
|
|
*/
|
|
interface RoomToolState {
|
|
/**
|
|
* The currently selected functionality of the room tool
|
|
*/
|
|
currentState: number,
|
|
}
|
|
|
|
/**
|
|
* Actual player control state
|
|
*/
|
|
export let playerControlState: PlayerControlState = {
|
|
roomTool: {
|
|
currentState: 0
|
|
}
|
|
} |