From a07457acacd24719568e5abecff2843f59ec97bb Mon Sep 17 00:00:00 2001 From: Ruben Vereecken Date: Fri, 11 Apr 2014 20:09:50 +0200 Subject: [PATCH] Finished minor refactorings --- app/initialize.coffee | 20 ++++---- app/schemas/subscriptions/level.coffee | 66 -------------------------- app/schemas/subscriptions/play.coffee | 2 +- 3 files changed, 11 insertions(+), 77 deletions(-) delete mode 100644 app/schemas/subscriptions/level.coffee diff --git a/app/initialize.coffee b/app/initialize.coffee index aab10839e..1bd399e9d 100644 --- a/app/initialize.coffee +++ b/app/initialize.coffee @@ -2,16 +2,16 @@ app = require 'application' channelSchemas = 'app': require './schemas/subscriptions/app' - #'bus': require './schemas/subscriptions/bus' - #'editor': require './schemas/subscriptions/editor' - #'errors': require './schemas/subscriptions/errors' - #'level': require './schemas/subscriptions/level' - #'misc': require './schemas/subscriptions/misc' - #'play': require './schemas/subscriptions/play' - #'surface': require './schemas/subscriptions/surface' - #'tome': require './schemas/subscriptions/tome' - #'user': require './schemas/subscriptions/user' - #'world': require './schemas/subscriptions/world' + 'bus': require './schemas/subscriptions/bus' + 'editor': require './schemas/subscriptions/editor' + 'errors': require './schemas/subscriptions/errors' + 'level': require './schemas/subscriptions/level' + 'misc': require './schemas/subscriptions/misc' + 'play': require './schemas/subscriptions/play' + 'surface': require './schemas/subscriptions/surface' + 'tome': require './schemas/subscriptions/tome' + 'user': require './schemas/subscriptions/user' + 'world': require './schemas/subscriptions/world' definitionSchemas = 'bus': require './schemas/definitions/bus' diff --git a/app/schemas/subscriptions/level.coffee b/app/schemas/subscriptions/level.coffee deleted file mode 100644 index 8d3d691ef..000000000 --- a/app/schemas/subscriptions/level.coffee +++ /dev/null @@ -1,66 +0,0 @@ -module.exports = - # TODO location is debatable - "echo-self-wizard-sprite": - {} # TODO schema - - "level:session-will-save": - {} # TODO schema - - "level-loader:progress-changed": - {} # TODO schema - - "level:shift-space-pressed": - {} # TODO schema - - "level:escape-pressed": - {} # TODO schema - - "level-enable-controls": - {} # TODO schema - - "level-set-letterbox": - {} # TODO schema - - "level:started": - {} # TODO schema - - "level-set-debug": - {} # TODO schema - - "level-set-grid": - {} # TODO schema - - "tome:cast-spell": - {} # TODO schema - - "level:restarted": - {} # TODO schema - - "level-set-volume": - {} # TODO schema - - "level-set-time": - {} # TODO schema - - "level-select-sprite": - {} # TODO schema - - "level-set-playing": - {} # TODO schema - - "level:team-set": - {} # TODO schema - - "level:docs-hidden": - {} # TODO schema - - "level:victory-hidden": - {} # TODO schema - - - - # TODO location is debatable - "goal-manager:new-goal-states": - {} # TODO schema - - diff --git a/app/schemas/subscriptions/play.coffee b/app/schemas/subscriptions/play.coffee index a9e41b27f..356f06a36 100644 --- a/app/schemas/subscriptions/play.coffee +++ b/app/schemas/subscriptions/play.coffee @@ -1,5 +1,5 @@ module.exports = - # TODO There should be a better way to subdivide these channels + # TODO There should be a better way to divide these channels into smaller ones # TODO location is debatable "echo-self-wizard-sprite":