node-minecraft-protocol/src/index.js
Romain Beaumont 917b6adda1 enable cross version with an option in createClient and createServer :
* put parsePacketData in deserializer and createPacketBuffer in serializer
* remove packets from the index and expose readPacket instead
* load packets when needed in various files
* make tests test every supported version
static cross version of #234, fix #65, fix #240
2015-09-29 22:44:28 +02:00

22 lines
725 B
JavaScript

var Client = require('./client');
var Server = require('./server');
var Yggdrasil = require('./yggdrasil.js');
var serializer = require("./transforms/serializer");
var utils = require("./utils");
var readPackets = require("./packets").readPackets;
var createClient = require("./createClient");
var createServer = require("./createServer");
module.exports = {
createClient: createClient,
createServer: createServer,
Client: Client,
Server: Server,
states: serializer.states,
createSerializer:serializer.createSerializer,
createDeserializer:serializer.createDeserializer,
readPackets:readPackets,
ping: require('./ping'),
yggdrasil: Yggdrasil,
supportedVersions:require("./version").supportedVersions
};