Renderer/assets/Scripts/client/entity/inventory.ts
austin 94c19d7990
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
scripting work
2024-07-10 15:27:05 -04:00

31 lines
711 B
TypeScript

/**
* Called every time an item is moved to a container
*/
export const onMoveItemContainer: Array<Function> = [ ]
/**
* Called every time an item is equipped
*/
export const onEquipItem: Array<Function> = [ ]
/**
* Called every time an item is unequipped
*/
export const onUnequipItem: Array<Function> = [ ]
/**
* Called every time the server commands the client to move items to another container
*/
export const onServerMoveItemContainer: Array<Function> = [ ]
/**
* Callbacks that fire every time the player's entity does specific actions
*/
export interface ClientInventory {
onMoveItemContainer: Array<Function>,
onEquipItem: Array<Function>,
onUnequipItem: Array<Function>,
}