Update the username in the body object when it is changed in the client.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1686 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-09-17 01:23:09 +00:00
parent ce424d616d
commit bf239bde95
@@ -1,10 +1,12 @@
//
// $Id: CrowdClient.java,v 1.8 2002/03/05 05:33:25 mdb Exp $
// $Id: CrowdClient.java,v 1.9 2002/09/17 01:23:09 mdb Exp $
package com.threerings.crowd.server;
import com.threerings.presents.server.PresentsClient;
import com.threerings.crowd.data.BodyObject;
/**
* The crowd client extends the presents client but doesn't really do
* anything at present. It exists mainly so that implementation systems
@@ -13,4 +15,12 @@ import com.threerings.presents.server.PresentsClient;
*/
public class CrowdClient extends PresentsClient
{
// documentation inherited
public void setUsername (String username)
{
super.setUsername(username);
// update the username in our body object
((BodyObject)_clobj).setUsername(username);
}
}