11 lines
295 B
TypeScript
11 lines
295 B
TypeScript
|
class SlaveProtocol {
|
||
|
public static get packetHandlers(): PacketHandle[] {
|
||
|
return [
|
||
|
{ id: 1, event: this.userLoginResponse }
|
||
|
];
|
||
|
}
|
||
|
|
||
|
private static userLoginResponse(data: Packet, conn: Connection): void {
|
||
|
console.log("mario has logged in");
|
||
|
}
|
||
|
}
|