Hinzufügen der Playground- und GameLoop-Klassen zur Spielverwaltung
This commit is contained in:
17
backend/src/SocketIO/GameManager/Game/GameLoop.js
Normal file
17
backend/src/SocketIO/GameManager/Game/GameLoop.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const socketIO = require("socket.io");
|
||||
const GameManager = require("../GameManager");
|
||||
const Playground = require("./Classes/Playground/Playground");
|
||||
|
||||
class GameLoop{
|
||||
/** @param {socketIO.Server} io @param {GameManager} game */
|
||||
constructor(io, game) {
|
||||
this.io = io;
|
||||
this.game = game;
|
||||
|
||||
this.playground = new Playground();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
module.exports = GameLoop;
|
||||
Reference in New Issue
Block a user