2021-08-12 04:58:56 +01:00
|
|
|
const funkyArray = require("./Util/funkyArray.js");
|
|
|
|
|
|
|
|
const Socket = require("net").Socket;
|
|
|
|
|
|
|
|
module.exports = class {
|
|
|
|
constructor(id = 1, socket = new Socket) {
|
|
|
|
this.id = id;
|
|
|
|
this.socket = socket;
|
|
|
|
|
|
|
|
this.username = "UNNAMED";
|
|
|
|
|
|
|
|
this.loginFinished = false;
|
|
|
|
|
2021-08-12 05:13:25 +01:00
|
|
|
this.entityRef = null;
|
|
|
|
|
2021-08-12 04:58:56 +01:00
|
|
|
this.chunksToSend = new funkyArray();
|
|
|
|
}
|
|
|
|
}
|