Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
const game = require("../Game/Game");
|
||||
const { players, packets } = game;
|
||||
|
||||
module.exports = function (ws, message, player) {
|
||||
console.info(packets)
|
||||
const topic = packets.getElement("test");
|
||||
if (!topic) return console.info("no topic");
|
||||
|
||||
if (!player.topics) player.topics = [topic];
|
||||
else player.topics.push(topic);
|
||||
|
||||
console.info("player topics", player.topics);
|
||||
};
|
||||
Reference in New Issue
Block a user