Removed custom exception candy

This commit is contained in:
2024-05-12 13:36:47 -04:00
parent 7335946c10
commit 634f1478ce
142 changed files with 181 additions and 327 deletions
+7 -9
View File
@@ -17,7 +17,6 @@ import engine.db.archive.CharacterRecord;
import engine.db.archive.DataWarehouse;
import engine.db.archive.PvpRecord;
import engine.exception.MsgSendException;
import engine.exception.SerializationException;
import engine.gameManager.*;
import engine.job.JobContainer;
import engine.job.JobScheduler;
@@ -315,33 +314,32 @@ public class PlayerCharacter extends AbstractCharacter {
return returnBuilding;
}
public static void __serializeForClientMsg(PlayerCharacter playerCharacter, ByteBufferWriter writer) throws SerializationException {
public static void __serializeForClientMsg(PlayerCharacter playerCharacter, ByteBufferWriter writer) {
serializeForClientCommon(playerCharacter, writer, true, false, false, false);
}
public static void serializeForClientMsgLogin(PlayerCharacter playerCharacter, ByteBufferWriter writer) throws SerializationException {
public static void serializeForClientMsgLogin(PlayerCharacter playerCharacter, ByteBufferWriter writer) {
serializeForClientCommon(playerCharacter, writer, true, false, false, false);
}
public static void serializeForClientMsgCommit(PlayerCharacter playerCharacter, ByteBufferWriter writer) throws SerializationException {
public static void serializeForClientMsgCommit(PlayerCharacter playerCharacter, ByteBufferWriter writer) {
serializeForClientCommon(playerCharacter, writer, true, true, false, false);
}
public static void serializeForClientMsgFull(PlayerCharacter playerCharacter, ByteBufferWriter writer) throws SerializationException {
public static void serializeForClientMsgFull(PlayerCharacter playerCharacter, ByteBufferWriter writer) {
serializeForClientCommon(playerCharacter, writer, false, false, false, false);
}
public static void serializeForClientMsgOtherPlayer(PlayerCharacter playerCharacter, ByteBufferWriter writer) throws SerializationException {
public static void serializeForClientMsgOtherPlayer(PlayerCharacter playerCharacter, ByteBufferWriter writer) {
serializeForClientCommon(playerCharacter, writer, false, false, true, false);
}
public static void serializePlayerForClientMsgOtherPlayer(PlayerCharacter playerCharacter, ByteBufferWriter writer, boolean hideAsciiLastName) throws SerializationException {
public static void serializePlayerForClientMsgOtherPlayer(PlayerCharacter playerCharacter, ByteBufferWriter writer, boolean hideAsciiLastName) {
serializeForClientCommon(playerCharacter, writer, false, false, true, hideAsciiLastName);
}
// TODO what is a Fresh Char?
private static void serializeForClientCommon(PlayerCharacter playerCharacter, ByteBufferWriter writer, boolean loginData, boolean freshChar, boolean otherPlayer, boolean hideAsciiLastName)
throws SerializationException {
private static void serializeForClientCommon(PlayerCharacter playerCharacter, ByteBufferWriter writer, boolean loginData, boolean freshChar, boolean otherPlayer, boolean hideAsciiLastName) {
/*
* RUNES