Rooms, items and some player stuff
This commit is contained in:
17
test/index.js
Normal file
17
test/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const room = {
|
||||
name: "A room",
|
||||
onEnter() {
|
||||
console.log("I entered");
|
||||
return "meow";
|
||||
},
|
||||
onExit() {
|
||||
console.log("I exited");
|
||||
}
|
||||
}
|
||||
|
||||
async function start() {
|
||||
await room.onEnter();
|
||||
await room.onExit();
|
||||
}
|
||||
|
||||
start();
|
Reference in New Issue
Block a user