diff options
| author | Fuwn <[email protected]> | 2026-02-12 22:33:32 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-12 22:33:32 -0800 |
| commit | c7a9d4a6bd53ed7d61731770f2f10e8b9fd435f9 (patch) | |
| tree | df9f48bf128a6c0186a8e91857d6ff30fe0e9f18 /NET/worlds/network/netCmds.java | |
| download | worldsplayer-c7a9d4a6bd53ed7d61731770f2f10e8b9fd435f9.tar.xz worldsplayer-c7a9d4a6bd53ed7d61731770f2f10e8b9fd435f9.zip | |
Initial commit
Diffstat (limited to 'NET/worlds/network/netCmds.java')
| -rw-r--r-- | NET/worlds/network/netCmds.java | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/NET/worlds/network/netCmds.java b/NET/worlds/network/netCmds.java new file mode 100644 index 0000000..ef3cdbb --- /dev/null +++ b/NET/worlds/network/netCmds.java @@ -0,0 +1,68 @@ +package NET.worlds.network; + +import java.util.Hashtable; +import java.util.Vector; + +class netCmds { + private Vector<String> _recvNetPacket = new Vector<String>(); + private static Hashtable<Integer, String> _propList = new Hashtable<Integer, String>(); + + static { + _propList.put(new Integer(1), "VAR_APPNAME"); + _propList.put(new Integer(2), "VAR_USERNAME"); + _propList.put(new Integer(3), "VAR_PROTOCOL"); + _propList.put(new Integer(4), "VAR_ERROR"); + _propList.put(new Integer(5), "VAR_CHANNEL"); + _propList.put(new Integer(6), "VAR_PASSWORD"); + _propList.put(new Integer(7), "VAR_AVATARS"); + _propList.put(new Integer(8), "VAR_UPDATETIME"); + _propList.put(new Integer(9), "VAR_CLIENT"); + _propList.put(new Integer(10), "VAR_SERIAL"); + _propList.put(new Integer(11), "VAR_EMAIL"); + _propList.put(new Integer(12), "VAR_LOGONOFF"); + _propList.put(new Integer(13), "VAR_DURATION"); + _propList.put(new Integer(14), "VAR_GUEST"); + _propList.put(new Integer(15), "VAR_SERVERTYPE"); + _propList.put(new Integer(16), "VAR_BIZCARD"); + _propList.put(new Integer(22), "VAR_PRIV"); + _propList.put(new Integer(20), "VAR_NEW_PASSWD"); + _propList.put(new Integer(23), "VAR_ASLEEP"); + _propList.put(new Integer(24), "VAR_EXTERNAL_HTTP_SERVER"); + _propList.put(new Integer(25), "VAR_SCRIPT_SERVER"); + _propList.put(new Integer(26), "VAR_SMTP_SERVER"); + _propList.put(new Integer(27), "VAR_MAIL_DOMAIN"); + _propList.put(new Integer(28), "VAR_NEW_USERNAME"); + _propList.put(new Integer(29), "VAR_INTERNAL_HTTP_SERVER"); + } + + public netCmds() { + this._recvNetPacket.addElement("appInitCmd"); + this._recvNetPacket.addElement("appearActorCmd"); + this._recvNetPacket.addElement("disappearActorCmd"); + this._recvNetPacket.addElement("longLocCmd"); + this._recvNetPacket.addElement("propCmd"); + this._recvNetPacket.addElement("regObjIDCmd"); + this._recvNetPacket.addElement("roomChangeCmd"); + this._recvNetPacket.addElement("sessionExitCmd"); + this._recvNetPacket.addElement("sessionInitCmd"); + this._recvNetPacket.addElement("shortLocCmd"); + this._recvNetPacket.addElement("teleportCmd"); + this._recvNetPacket.addElement("textCmd"); + this._recvNetPacket.addElement("whisperCmd"); + this._recvNetPacket.addElement("roomIDCmd"); + this._recvNetPacket.addElement("PropertySetCmd"); + this._recvNetPacket.addElement("PropertyUpdateCmd"); + this._recvNetPacket.addElement("FingerReplyCmd"); + this._recvNetPacket.addElement("RedirectCmd"); + this._recvNetPacket.addElement("RedirectIDCmd"); + this._recvNetPacket.addElement("BuddyListNotifyCmd"); + } + + Vector<String> recvCmdList() { + return this._recvNetPacket; + } + + static String getPropName(int id) { + return _propList.get(new Integer(id)); + } +} |