Extend PartyClient, do the right thing with our BootstrapData.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@419 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-09 19:23:50 +00:00
parent 8eb3dba6dc
commit 758bac6f28
@@ -1,26 +1,32 @@
// //
// $Id: MiCasaClient.java,v 1.1 2001/10/09 18:20:08 mdb Exp $ // $Id: MiCasaClient.java,v 1.2 2001/10/09 19:23:50 mdb Exp $
package com.threerings.micasa.server; package com.threerings.micasa.server;
import com.threerings.cocktail.cher.net.BootstrapData; import com.threerings.cocktail.cher.net.BootstrapData;
import com.threerings.cocktail.cher.server.CherClient; import com.threerings.cocktail.party.server.PartyClient;
import com.threerings.micasa.data.MiCasaBootstrapData;
/** /**
* Extends the cher client and provides bootstrap data specific to the * Extends the cher client and provides bootstrap data specific to the
* MiCasa services. * MiCasa services.
*/ */
public class MiCasaClient extends CherClient public class MiCasaClient extends PartyClient
{ {
// documentation inherited // documentation inherited
protected BootstrapData createBootstrapData () protected BootstrapData createBootstrapData ()
{ {
return new BootstrapData(); return new MiCasaBootstrapData();
} }
// documentation inherited // documentation inherited
protected void populateBootstrapData (BootstrapData data) protected void populateBootstrapData (BootstrapData data)
{ {
super.populateBootstrapData(data); super.populateBootstrapData(data);
// let the client know their default lobby oid
((MiCasaBootstrapData)data).defLobbyOid =
MiCasaServer.lobreg.getDefaultLobbyOid();
} }
} }