mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Merge branch 'master' into feature/thangload
Conflicts: app/lib/LevelLoader.coffee app/views/play/level_view.coffee
This commit is contained in:
parent
92687b17de
commit
2952d7702c
2 changed files with 0 additions and 14 deletions
|
@ -105,7 +105,6 @@ module.exports = class LevelLoader extends CocoClass
|
|||
|
||||
objUniq = (array) -> _.uniq array, false, (arg) -> JSON.stringify(arg)
|
||||
|
||||
<<<<<<< HEAD
|
||||
thangNames = new ThangNamesCollection(thangIDs)
|
||||
@supermodel.loadCollection thangNames, 'thang_names'
|
||||
# for thangID in _.uniq thangIDs
|
||||
|
@ -113,14 +112,6 @@ module.exports = class LevelLoader extends CocoClass
|
|||
# url += "?project=true" if @headless and not @editorMode
|
||||
# res = @maybeLoadURL url, ThangType, 'thang'
|
||||
# @listenToOnce res.model, 'sync', @buildSpriteSheetsForThangType if res
|
||||
|
||||
=======
|
||||
for thangID in _.uniq thangIDs
|
||||
url = "/db/thang.type/#{thangID}/version"
|
||||
url += "?project=true" if @headless and not @editorMode
|
||||
res = @maybeLoadURL url, ThangType, 'thang'
|
||||
@listenToOnce res.model, 'sync', @buildSpriteSheetsForThangType if res
|
||||
>>>>>>> master
|
||||
for obj in objUniq componentVersions
|
||||
url = "/db/level.component/#{obj.original}/version/#{obj.majorVersion}"
|
||||
@maybeLoadURL url, LevelComponent, 'component'
|
||||
|
|
|
@ -93,9 +93,6 @@ module.exports = class PlayLevelView extends View
|
|||
@load()
|
||||
application.tracker?.trackEvent 'Started Level Load', level: @levelID, label: @levelID
|
||||
|
||||
<<<<<<< HEAD
|
||||
setLevel: (@level, @supermodel) ->
|
||||
=======
|
||||
onLevelLoadError: (e) ->
|
||||
# TODO NOW: remove this in favor of the supermodel handling it
|
||||
application.router.navigate "/play?not_found=#{@levelID}", {trigger: true}
|
||||
|
@ -104,8 +101,6 @@ module.exports = class PlayLevelView extends View
|
|||
@supermodel.models = givenSupermodel.models
|
||||
@supermodel.collections = givenSupermodel.collections
|
||||
@supermodel.shouldSaveBackups = givenSupermodel.shouldSaveBackups
|
||||
|
||||
>>>>>>> master
|
||||
@god?.level = @level.serialize @supermodel
|
||||
if @world
|
||||
serializedLevel = @level.serialize(@supermodel)
|
||||
|
|
Loading…
Reference in a new issue