diff --git a/src/java/com/threerings/presents/client/Client.java b/src/java/com/threerings/presents/client/Client.java index d7eeebb47..6cd99e257 100644 --- a/src/java/com/threerings/presents/client/Client.java +++ b/src/java/com/threerings/presents/client/Client.java @@ -1,5 +1,5 @@ // -// $Id: Client.java,v 1.11 2001/07/25 00:51:05 mdb Exp $ +// $Id: Client.java,v 1.12 2001/08/21 00:58:10 mdb Exp $ package com.threerings.cocktail.cher.client; @@ -7,6 +7,7 @@ import java.util.ArrayList; import java.util.List; import com.threerings.cocktail.cher.Log; +import com.threerings.cocktail.cher.data.ClientObject; import com.threerings.cocktail.cher.dobj.DObjectManager; import com.threerings.cocktail.cher.net.BootstrapData; import com.threerings.cocktail.cher.net.Credentials; @@ -167,6 +168,15 @@ public class Client return _cloid; } + /** + * Returns a reference to the client object associated with this + * session. It is only valid for the duration of the session. + */ + public ClientObject getClientObject () + { + return _invmgr.getClientObject(); + } + /** * Returns the invocation manager associated with this session. This * reference is only valid for the duration of the session. diff --git a/src/java/com/threerings/presents/client/InvocationDirector.java b/src/java/com/threerings/presents/client/InvocationDirector.java index 88db95ef9..d30322896 100644 --- a/src/java/com/threerings/presents/client/InvocationDirector.java +++ b/src/java/com/threerings/presents/client/InvocationDirector.java @@ -1,5 +1,5 @@ // -// $Id: InvocationDirector.java,v 1.7 2001/08/14 06:47:15 mdb Exp $ +// $Id: InvocationDirector.java,v 1.8 2001/08/21 00:58:10 mdb Exp $ package com.threerings.cocktail.cher.client; @@ -250,6 +250,15 @@ public class InvocationManager return _invocationId++; } + /** + * Access to the client object so that the client instance doesn't + * have to subscribe to it just to make it available. + */ + protected ClientObject getClientObject () + { + return _clobj; + } + protected static class Response { public String name;