forked from MagicBane/Server
MB Dev Notes added to critical classes.
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||||
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||||
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||||
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||||
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||||
// Magicbane Emulator Project © 2013 - 2022
|
||||
// www.magicbane.com
|
||||
package engine.net;
|
||||
|
||||
/* This class defines Magicbane's application network protocol.
|
||||
--> Name / Opcode / Message / Handler
|
||||
*/
|
||||
|
||||
import engine.net.client.handlers.*;
|
||||
import engine.net.client.msg.*;
|
||||
@@ -16,6 +20,13 @@ import org.pmw.tinylog.Logger;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.util.HashMap;
|
||||
|
||||
// MB Dev Notes:
|
||||
// This class defines the application network protocol used by SB.
|
||||
// --> Name / Opcode / Message / Handler
|
||||
//
|
||||
// All incoming Protocol messages from the player are managed by the Protocol.class.
|
||||
// All outgoing Protocol messages to the player are managed through the MessageDispatcher.class.
|
||||
|
||||
public enum Protocol {
|
||||
|
||||
NONE(0x0, null, null),
|
||||
@@ -286,9 +297,7 @@ public enum Protocol {
|
||||
|
||||
public static boolean handleClientMsg(ClientNetMsg msg) {
|
||||
|
||||
// Main message handler for Magicbane. All messages
|
||||
// incoming from the client are executed here for
|
||||
// both the login and world servers.
|
||||
// Process incoming Protocol message from client.
|
||||
|
||||
if (msg == null)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user