summaryrefslogtreecommitdiff
path: root/WebInterface/src/js/modules/networking/commands/playCmds.js
blob: 94cd6bafeb750107745ed32462d2690a81c93b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// import ListServers from './login/listServers';

/**
 * Manages commands related to the login page
 */
export default class LoginCommands {
  /**
   * Initializes the login commands
   * @param {Interface} iface Interface for inter-object communication
   */
  constructor(iface) {
    this.iface = iface;
    this.cmds = [];
  }

  /**
   * Registers all the available commands
   */
  registerCommands() {
    // this.cmds.push(new ListServers(iface));
  }

  /**
   * Destroys all attached commands
   */
  destroy() {
    for (let cmd of this.cmds) {
      cmd.destroy();
    }
  }
}