Made occupant info into a simple streamable object because it was

screaming out for it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1271 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-04-17 22:19:40 +00:00
parent 47a5ad9fb7
commit 3e4540958a
2 changed files with 9 additions and 73 deletions
@@ -1,12 +1,8 @@
//
// $Id: SpotOccupantInfo.java,v 1.1 2001/12/14 00:12:32 mdb Exp $
// $Id: SpotOccupantInfo.java,v 1.2 2002/04/17 22:19:40 mdb Exp $
package com.threerings.whirled.spot.data;
import java.io.IOException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import com.threerings.crowd.data.OccupantInfo;
/**
@@ -18,27 +14,4 @@ public class SpotOccupantInfo extends OccupantInfo
/** The id of the location occupied by this user or -1 if they occupy
* no location. */
public int locationId;
// documentation inherited
public void writeTo (DataOutputStream out)
throws IOException
{
super.writeTo(out);
out.writeInt(locationId);
}
// documentation inherited
public void readFrom (DataInputStream in)
throws IOException
{
super.readFrom(in);
locationId = in.readInt();
}
// documentation inherited
protected void toString (StringBuffer buf)
{
super.toString(buf);
buf.append(", locId=").append(locationId);
}
}