summaryrefslogtreecommitdiff
path: root/NET/worlds/network/propCmd.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/network/propCmd.java
downloadworlds.jar-main.tar.xz
worlds.jar-main.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/network/propCmd.java')
-rw-r--r--NET/worlds/network/propCmd.java133
1 files changed, 133 insertions, 0 deletions
diff --git a/NET/worlds/network/propCmd.java b/NET/worlds/network/propCmd.java
new file mode 100644
index 0000000..95f166b
--- /dev/null
+++ b/NET/worlds/network/propCmd.java
@@ -0,0 +1,133 @@
+/* */ package NET.worlds.network;
+/* */
+/* */ import java.io.IOException;
+/* */ import java.io.PrintStream;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class propCmd
+/* */ extends receivedNetPacket
+/* */ {
+/* */ public static final byte PROPCMD = 3;
+/* */ protected OldPropertyList _propList;
+/* */
+/* */ public propCmd()
+/* */ {
+/* 60 */ this._commandType = 3;
+/* */
+/* 62 */ this._propList = new OldPropertyList();
+/* */ }
+/* */
+/* */ public propCmd(OldPropertyList propList)
+/* */ {
+/* 67 */ super(null, 3);
+/* 68 */ this._propList = propList;
+/* */ }
+/* */
+/* */ public propCmd(ObjID objID, OldPropertyList propList)
+/* */ {
+/* 73 */ super(objID, 3);
+/* 74 */ this._propList = propList;
+/* */ }
+/* */
+/* */ void parseNetData(ServerInputStream data) throws IOException
+/* */ {
+/* 79 */ this._propList = new OldPropertyList();
+/* 80 */ this._propList.parseNetData(data);
+/* */ }
+/* */
+/* */ int packetSize()
+/* */ {
+/* 85 */ return super.packetSize() + this._propList.packetSize();
+/* */ }
+/* */
+/* */ void send(ServerOutputStream o) throws IOException
+/* */ {
+/* 90 */ super.send(o);
+/* 91 */ assert (this._propList != null);
+/* 92 */ this._propList.send(o);
+/* */ }
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ void process(WorldServer _serv)
+/* */ throws Exception
+/* */ {
+/* 111 */ NetworkObject o = _serv.getObject(this._objID);
+/* */
+/* 113 */ if (o == null) {
+/* 114 */ System.err.println("propCmd::process() error: cannot find object with name " +
+/* 115 */ this._objID);
+/* 116 */ return;
+/* */ }
+/* */
+/* 119 */ o.property(this._propList);
+/* */ }
+/* */
+/* */
+/* */ public String toString(WorldServer serv)
+/* */ {
+/* 125 */ return "PROP " + this._objID.toString(serv) + " " + this._propList;
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\propCmd.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file