summaryrefslogtreecommitdiff
path: root/NET/worlds/network/PropertySetCmd.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/network/PropertySetCmd.java')
-rw-r--r--NET/worlds/network/PropertySetCmd.java102
1 files changed, 102 insertions, 0 deletions
diff --git a/NET/worlds/network/PropertySetCmd.java b/NET/worlds/network/PropertySetCmd.java
new file mode 100644
index 0000000..3f043bf
--- /dev/null
+++ b/NET/worlds/network/PropertySetCmd.java
@@ -0,0 +1,102 @@
+/* */ package NET.worlds.network;
+/* */
+/* */ import java.io.IOException;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class PropertySetCmd
+/* */ extends receivedNetPacket
+/* */ {
+/* */ public static final byte PROPSETCMD = 15;
+/* */ private PropertyList _propList;
+/* */ private String _fromUser;
+/* */
+/* */ public PropertySetCmd()
+/* */ {
+/* 39 */ this._commandType = 15;
+/* */ }
+/* */
+/* */ public PropertySetCmd(PropertyList propList)
+/* */ {
+/* 44 */ super(null, 15);
+/* 45 */ this._propList = propList;
+/* 46 */ this._fromUser = new String("");
+/* */ }
+/* */
+/* */ public PropertySetCmd(ObjID objID, PropertyList propList)
+/* */ {
+/* 51 */ super(objID, 15);
+/* 52 */ this._propList = propList;
+/* 53 */ this._fromUser = new String("");
+/* */ }
+/* */
+/* */ void parseNetData(ServerInputStream data) throws IOException
+/* */ {
+/* 58 */ this._fromUser = data.readUTF();
+/* 59 */ this._propList = new PropertyList();
+/* 60 */ this._propList.parseNetData(data);
+/* */ }
+/* */
+/* */ int packetSize()
+/* */ {
+/* 65 */ int len = super.packetSize();
+/* */
+/* 67 */ assert (this._fromUser != null);
+/* 68 */ len += 1 + ServerOutputStream.utfLength(this._fromUser);
+/* */
+/* 70 */ len += this._propList.packetSize();
+/* */
+/* 72 */ return len;
+/* */ }
+/* */
+/* */ void send(ServerOutputStream o) throws IOException
+/* */ {
+/* 77 */ super.send(o);
+/* */
+/* 79 */ o.writeUTF(this._fromUser);
+/* 80 */ this._propList.send(o);
+/* */ }
+/* */
+/* */
+/* */
+/* */ void process(WorldServer _serv)
+/* */ throws Exception
+/* */ {}
+/* */
+/* */
+/* */
+/* */ public String toString(WorldServer serv)
+/* */ {
+/* 93 */ return
+/* 94 */ "PROPSET \"" + this._fromUser + "\"->" + this._objID.toString(serv) + " " + this._propList;
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\PropertySetCmd.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file