Lots of debug logging, some casting.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4001 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-04-06 20:05:28 +00:00
parent f7f9056ed2
commit 64d7f32178
7 changed files with 34 additions and 4 deletions
@@ -24,6 +24,7 @@ package com.threerings.crowd.data {
import com.threerings.util.Byte;
import com.threerings.util.Name;
//import com.threerings.presents.Log;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationCodes;
@@ -119,6 +120,7 @@ public class BodyObject extends ClientObject
public override function writeObject (out :ObjectOutputStream) :void
{
super.writeObject(out);
out.writeObject(username);
out.writeInt(location);
out.writeByte(status);
@@ -128,9 +130,14 @@ public class BodyObject extends ClientObject
public override function readObject (ins :ObjectInputStream) :void
{
super.readObject(ins);
Log.debug("Reading username");
username = (ins.readObject() as Name);
Log.debug("Reading location");
location = ins.readInt();
Log.debug("Reading status");
status = ins.readByte();
Log.debug("Reading awayMessage");
awayMessage = (ins.readField(String) as String);
}