voice box hopefully done

This commit is contained in:
2024-07-10 23:08:50 +00:00
parent 5a62ce3274
commit 1130b04947
2 changed files with 59 additions and 45 deletions

12
ambient.d.ts vendored
View File

@@ -6,13 +6,18 @@
declare namespace LILY {
interface Utils {
remove_hook: undefined | (() => void)
true(callback: () => unknown): true // stops elsint from complainting about constant bool expressions
with<V, R>(value: V, callback: (v: V) => R): R // A silly helper to kinda curry values
send(callback: () => unknown): boolean // updates the player if the function succeeds
}
interface Box {
enable(): void
disable(): void
get equipped(): boolean
enable(item: Item | undefined): boolean
disable(item: Item | undefined): boolean
on(): boolean
off(): boolean
get item(): Item | undefined
get enabled(): boolean
}
@@ -37,6 +42,7 @@ declare namespace LILY {
interface Commands extends Command<Commands> {}
interface Belt {
admins: number[]
users: number[]
cli: Commands
is_cb(subject: Commands | CommandCB): subject is CommandCB
run(tokens: string[]): string