package net.lightstone.msg.handler; | |
import net.lightstone.model.Player; | |
import net.lightstone.model.Rotation; | |
import net.lightstone.msg.RotationMessage; | |
import net.lightstone.net.Session; | |
public final class RotationMessageHandler extends MessageHandler<RotationMessage> { | |
@Override | |
public void handle(Session session, Player player, RotationMessage message) { | |
if (player == null) | |
return; | |
player.setRotation(new Rotation(message.getRotation(), message.getPitch())); | |
} | |
} |