Ray has convinced me that the zero-args constructor is less weird. Though I
think that's probably just because we're used to it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6577 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -102,11 +102,14 @@ public class OccupantInfo extends SimpleStreamableObject
|
||||
*/
|
||||
public OccupantInfo (BodyObject body)
|
||||
{
|
||||
if (body != null) { // body is null when unserializing
|
||||
bodyOid = Integer.valueOf(body.getOid());
|
||||
username = body.getVisibleName();
|
||||
status = body.status;
|
||||
}
|
||||
bodyOid = Integer.valueOf(body.getOid());
|
||||
username = body.getVisibleName();
|
||||
status = body.status;
|
||||
}
|
||||
|
||||
/** Used for unserialization. */
|
||||
public OccupantInfo ()
|
||||
{
|
||||
}
|
||||
|
||||
/** Access to the body object id as an int. */
|
||||
|
||||
Reference in New Issue
Block a user