public class MsgUtil
extends java.lang.Object
| Constructor and Description |
|---|
MsgUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getGCMsg(int msg)
Strips off the protobuf message flag and returns an EMsg.
|
static EMsg |
getMsg(int msg)
Strips off the protobuf message flag and returns an EMsg.
|
static boolean |
isProtoBuf(int msg)
Determines whether message is protobuf flagged.
|
static int |
makeGCMsg(int msg,
boolean protobuf)
Crafts an EMsg, flagging it if required.
|
static int |
makeMsg(int msg,
boolean protobuf)
Crafts an EMsg, flagging it if required.
|
public static EMsg getMsg(int msg)
msg - The message number.public static int getGCMsg(int msg)
msg - The message number.public static int makeMsg(int msg,
boolean protobuf)
msg - The EMsg to flag.protobuf - if set to true, the message is protobuf flagged.public static int makeGCMsg(int msg,
boolean protobuf)
msg - The EMsg to flag.protobuf - if set to true, the message is protobuf flagged.public static boolean isProtoBuf(int msg)
msg - The message.