Skip to content

Commit

Permalink
impl: show/hide
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Dec 4, 2023
1 parent 89d3a1b commit 1a66af6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ export class Entry {
}

/* 생김새 */
show(obj: EntrySprite) {
obj.visible = true
}
hide(obj: EntrySprite) {
obj.visible = false
}
dialog(text: string, type: "speak" | "think", obj: EntrySprite) {
console.log(`Object_${obj} ${type}s:`, text)
}
Expand Down

0 comments on commit 1a66af6

Please sign in to comment.