Maescool/Catacomb-Snatch — Issue #240: Send Map from Host to User
Author: mristau
Created: 2012-02-23 12:31:54+00:00
State: open

Just looked through the Code a little bit.
I discovered following snippet in Packet.java

"static {
map(10, StartGamePacket.class);
map(11, TurnPacket.class);

map(100, ChangeKeyCommand.class);
map(101, PauseCommand.class);
map(104, ChangeMouseButtonCommand.class);
map(105, ChangeMouseCoordinateCommand.class);
}"

As I'm not so much skilled in Java, I just do this Issue ;)
Wouldn't it be possible to add the Level.class in here as packet, after the Server loaded it and then send it to the Client.
This way it wouldn't be possible anymore, that the Client uses a "hacked" version of the level locally ;)