| 31 | } |
| 32 | |
| 33 | constructor (options) { |
| 34 | if (!options) { |
| 35 | options = {} |
| 36 | } |
| 37 | super(options) |
| 38 | this.options = options |
| 39 | this.refreshAndContinueSimulating = this.refreshAndContinueSimulating.bind(this) |
| 40 | this.simulatedByYouCount = me.get('simulatedBy') || 0 |
| 41 | this.simulatorsLeaderboardData = new SimulatorsLeaderboardData(me, this.options.level) |
| 42 | this.simulatorsLeaderboardDataRes = this.supermodel.addModelResource(this.simulatorsLeaderboardData, 'top_simulators', { cache: false }) |
| 43 | this.simulatorsLeaderboardDataRes.load() |
| 44 | Promise.all( |
| 45 | ['javascript', 'python', 'coffeescript', 'lua', 'cpp', 'java'].map( |
| 46 | loadAetherLanguage |
| 47 | ) |
| 48 | ) |
| 49 | } |
| 50 | |
| 51 | onLoaded () { |
| 52 | let needle |