Created ClientLocal and BodyLocal which is where we'll track server-only
information. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5474 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -367,6 +367,7 @@ public class PresentsClient
|
||||
{
|
||||
// we'll be keeping this bad boy
|
||||
_clobj = clobj;
|
||||
_clobj.setLocal(ClientLocal.class, createLocalAttribute());
|
||||
|
||||
// if our connection was closed while we were resolving our client object, then just
|
||||
// abandon ship
|
||||
@@ -423,6 +424,14 @@ public class PresentsClient
|
||||
disp.dispatch(this, message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a record that will be maintained only on the server to track client related bits.
|
||||
*/
|
||||
protected ClientLocal createLocalAttribute ()
|
||||
{
|
||||
return new ClientLocal();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when {@link #setUsername} has been called and the new client object is about to be
|
||||
* applied to this client. The old client object will not yet have been destroyed, so any final
|
||||
|
||||
Reference in New Issue
Block a user