Skeleton for bureau/agent architecture (https://wiki.earth.threerings.net/display/whirled/The+Bureacracy)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5025 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package com.threerings.bureau.client;
|
||||
|
||||
import com.threerings.presents.client.BasicDirector;
|
||||
import com.threerings.presents.data.ClientObject;
|
||||
import com.threerings.presents.util.PresentsContext;
|
||||
|
||||
/**
|
||||
* Allows the server to create and destroy agents on a client.
|
||||
* @see BureauRegistry
|
||||
*/
|
||||
public class BureauDirector extends BasicDirector
|
||||
implements BureauReceiver
|
||||
{
|
||||
protected BureauDirector (PresentsContext ctx)
|
||||
{
|
||||
super(ctx);
|
||||
|
||||
// Set up our decoder so we can receive method calls
|
||||
// from the server
|
||||
_ctx.getClient().getInvocationDirector().
|
||||
registerReceiver(new BureauDecoder(this));
|
||||
}
|
||||
|
||||
@Override // inherited documentation
|
||||
public void createAgent (ClientObject client, int agentId)
|
||||
{
|
||||
}
|
||||
|
||||
@Override // inherited documentation
|
||||
public void destroyAgent (ClientObject client, int agentId)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user