Open rom1504 opened 8 years ago
the classic protocol could go in mcdata anyway.
seems like it's protocol 7 https://github.com/mhsjlw/minecraft-classic-protocol/blob/master/src/createClient.js#L37
which is not in https://github.com/PrismarineJS/minecraft-data/blob/master/data/common/protocolVersions.json#L1114
putting it in mcdata requires to solve the same thing than in https://github.com/PrismarineJS/minecraft-data/issues/114
I thought it was possible to have one lib handling both classic, mcpc and mcpe. But now looking at a (now working) minecraft-classic lib, https://github.com/mhsjlw/minecraft-classic-protocol, it doesn't seem so obvious.
The serialization/parsing part is indeed common (done by protodef). The client and server are possibly generalizable.
But my problem is with createClient and createServer. They are very different in classic. The examples and the test are also really different between classic and modern.
How do you think we should go with that ?
keeping them separate ? having different tests, example and client,server plugins (~=createClient/createServer) for classic/modern (and one day mcpe) ?
Maybe keeping them separate but putting a maximum of things in common via libs is the best way to go ?