Add SA:MP support, fixes #3

This commit is contained in:
Michael Morrison 2014-03-29 09:34:12 -05:00
parent 76ca9fd4d7
commit bd17fb0001
5 changed files with 312 additions and 1 deletions

View file

@ -57,6 +57,8 @@ function createProtocolInstance(type) {
module.exports = {
lookup: function(type) {
if(!type) throw Error('No game specified');
if(type.substr(0,9) == 'protocol-') {
return createProtocolInstance(type.substr(9));
}