Created a ServerMessageEvent that is just like a normal MessageEvent
except that messages will never leave the server. If generated on a client, they'll go to the server and be processed like a normal event there (event handlers will be called) but the event will not leave the server and be sent to subscribing clients. Changed the ManagerCaller used by PlaceObjects to use ServerMessageEvents. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4648 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -28,6 +28,7 @@ import com.threerings.util.Name;
|
||||
import com.threerings.presents.dobj.DObject;
|
||||
import com.threerings.presents.dobj.DSet;
|
||||
import com.threerings.presents.dobj.OidList;
|
||||
import com.threerings.presents.dobj.ServerMessageEvent;
|
||||
|
||||
import com.threerings.crowd.Log;
|
||||
import com.threerings.crowd.chat.data.SpeakMarshaller;
|
||||
@@ -60,7 +61,7 @@ public class PlaceObject extends DObject
|
||||
public class ManagerCaller
|
||||
{
|
||||
public void invoke (String method, Object ... args) {
|
||||
postMessage(method, args);
|
||||
postEvent(new ServerMessageEvent(_oid, method, args));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user