{"size": 442, "ext": "js", "max_stars_repo_path": "backend/src/game/dungeonComponent.js", "max_stars_repo_name": "ming-inside/ethernal", "max_stars_repo_stars_event_min_datetime": "2021-03-15T22:16:05.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-30T17:10:44.000Z", "max_issues_repo_path": "backend/src/game/dungeonComponent.js", "max_issues_repo_name": "0xgen0/ethernal", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "backend/src/game/dungeonComponent.js", "max_forks_repo_name": "0xgen0/ethernal", "max_forks_repo_forks_event_min_datetime": "2021-04-13T04:37:04.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-13T03:30:01.000Z"}
{"max_stars_count": 41, "max_issues_count": null, "max_forks_count": 10, "avg_line_length": 16.3703703704, "max_line_length": 54, "alphanum_fraction": 0.6628959276}
class DungeonComponent {
  constructor(dungeon) {
    this.dungeon = dungeon;
  }

  registerEventHandlers() {}

  async fetchAll(fromBlock = 0, toBlock = 'latest') {}

  get sockets() {
    return this.dungeon.sockets;
  }

  get contracts() {
    return this.dungeon.contracts;
  }

  async storeSchema() {
  }

  async runExclusive(id, callback) {
    return this.dungeon.mutex.run(id, callback);
  }
}

module.exports = DungeonComponent;
