Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
+41 -45
View File
@@ -7,9 +7,6 @@
// www.magicbane.com
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
@@ -31,59 +28,58 @@ import engine.server.world.WorldServer;
public class WorldRealmMsg extends ClientNetMsg {
/**
* This is the general purpose constructor.
*/
public WorldRealmMsg() {
super(Protocol.REALMDATA);
}
/**
* This is the general purpose constructor.
*/
public WorldRealmMsg() {
super(Protocol.REALMDATA);
}
/**
* This constructor is used by NetMsgFactory. It attempts to deserialize the
* ByteBuffer into a message. If a BufferUnderflow occurs (based on reading
* past the limit) then this constructor Throws that Exception to the
* caller.
*/
public WorldRealmMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.REALMDATA, origin, reader);
}
/**
* This constructor is used by NetMsgFactory. It attempts to deserialize the
* ByteBuffer into a message. If a BufferUnderflow occurs (based on reading
* past the limit) then this constructor Throws that Exception to the
* caller.
*/
public WorldRealmMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.REALMDATA, origin, reader);
}
@Override
protected int getPowerOfTwoBufferSize() {
return (14); // 2^14 == 16384
}
@Override
protected int getPowerOfTwoBufferSize() {
return (14); // 2^14 == 16384
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
@Override
protected void _serialize(ByteBufferWriter writer) {
int realmCount;
int realmID;
Realm serverRealm;
int realmCount;
int realmID;
Realm serverRealm;
realmCount = Realm._realms.size();
realmCount = Realm._realms.size();
writer.putInt(realmCount);
writer.putInt(realmCount);
for (Realm realm : Realm._realms.values())
realm.serializeForClientMsg(writer);
for (Realm realm : Realm._realms.values())
realm.serializeForClientMsg(writer);
writer.putInt(0x0);
writer.putInt(WorldServer.worldRealmMap);
writer.putInt(0x0);
writer.putInt(WorldServer.worldRealmMap);
}
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
// TODO Implement Deserialization
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
// TODO Implement Deserialization
}
}