Skip to content

Commit

Permalink
Add plugin stub
Browse files Browse the repository at this point in the history
  • Loading branch information
deathcap committed Apr 30, 2014
1 parent b2c8c76 commit 76b52ad
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "voxel-quarry",
"description": "",
"version": "0.0.1",
"main": "quarry.js",
"repository": {
"type": "git",
"url": "git@github.com:deathcap/voxel-quarry.git"
Expand Down
22 changes: 22 additions & 0 deletions quarry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

module.exports = function(game, opts) {
return new QuarryPlugin(game, opts);
};
module.exports.pluginInfo = {
loadAfter: ['voxel-registry']
};

function QuarryPlugin(game, opts) {
this.registry = game.plugins.get('voxel-registry');
if (!this.registry) throw new Error('voxel-quarry requires voxel-registry plugin');

this.enable();
}

QuarryPlugin.prototype.enable = function() {
};

QuarryPlugin.prototype.disable = function() {
};

0 comments on commit 76b52ad

Please sign in to comment.