2014-06-16 08:27:16 -04:00
|
|
|
CocoModel = require 'models/CocoModel'
|
2016-01-07 12:40:35 -05:00
|
|
|
RootView = require 'views/core/RootView'
|
|
|
|
utils = require 'core/utils'
|
2014-06-17 15:42:27 -04:00
|
|
|
Achievement = require 'models/Achievement'
|
|
|
|
EarnedAchievement = require 'models/EarnedAchievement'
|
2014-07-06 17:38:57 -04:00
|
|
|
fixtures = require '../../fixtures/achievements'
|
2014-06-16 08:27:16 -04:00
|
|
|
|
|
|
|
module.exports = ->
|
2014-06-24 07:49:54 -04:00
|
|
|
me.set 'points', 48
|
2014-08-12 11:59:33 -04:00
|
|
|
me.set 'preferredLanguage', 'es'
|
2014-06-19 09:52:05 -04:00
|
|
|
|
2014-07-06 17:16:00 -04:00
|
|
|
unlockableObj = fixtures.DungeonArenaStarted
|
2014-06-17 15:42:27 -04:00
|
|
|
earnedUnlockableObj =
|
|
|
|
earnedPoints: 3
|
|
|
|
notified: false
|
2014-08-11 08:51:34 -04:00
|
|
|
simulated = fixtures.Simulated
|
|
|
|
earnedSimulated =
|
|
|
|
achievedAmount: 1
|
|
|
|
earnedPoints: 1
|
|
|
|
notified: false
|
|
|
|
|
2014-06-17 15:42:27 -04:00
|
|
|
|
|
|
|
unlockable = new Achievement unlockableObj
|
|
|
|
earnedUnlockable = new EarnedAchievement earnedUnlockableObj
|
2014-08-11 08:51:34 -04:00
|
|
|
simulated = new Achievement simulated
|
|
|
|
earnedSimulated = new EarnedAchievement earnedSimulated
|
2014-06-17 15:42:27 -04:00
|
|
|
|
2014-07-28 11:40:20 -04:00
|
|
|
view = new RootView
|
|
|
|
view.render()
|
2014-08-11 08:11:26 -04:00
|
|
|
|
|
|
|
view.showNewAchievement unlockable, earnedUnlockable
|
2014-08-11 08:51:34 -04:00
|
|
|
#view.showNewAchievement simulated, earnedSimulated
|
2014-08-11 08:11:26 -04:00
|
|
|
view
|