From 76b52ad7b950928eeb6d0fa8762476cf1c9cef21 Mon Sep 17 00:00:00 2001 From: deathcap Date: Tue, 29 Apr 2014 20:55:00 -0700 Subject: [PATCH] Add plugin stub --- package.json | 1 + quarry.js | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 quarry.js diff --git a/package.json b/package.json index 70b49fa..a6c4526 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/quarry.js b/quarry.js new file mode 100644 index 0000000..ac7aff5 --- /dev/null +++ b/quarry.js @@ -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() { +}; +