Let's name inner classes with an "_" where Java puts a "$", and do

automatic name translation for those names.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4129 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-19 02:23:47 +00:00
parent a2644d5c04
commit 7ec9c8d642
16 changed files with 46 additions and 58 deletions
@@ -51,21 +51,9 @@ public class Communicator
inputFrameReceived);
_inStream = new ObjectInputStream();
addClassTranslations();
_socket.connect(_client.getHostname(), _client.getPort());
}
private function addClassTranslations () :void
{
Translations.addTranslation(
"com.threerings.presents.dobj.DSetEntry",
"com.threerings.presents.dobj.DSet$Entry");
Translations.addTranslation(
"com.threerings.crowd.data.MoveMarshaller",
"com.threerings.crowd.data.LocationMarshaller$MoveMarshaller");
}
public function logoff () :void
{
if (_socket == null) {
@@ -6,7 +6,7 @@ import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.presents.dobj.DSet;
import com.threerings.presents.dobj.DSetEntry;
import com.threerings.presents.dobj.DSet_Entry;
/**
* Used to maintain a registry of invocation receivers that can be
@@ -14,7 +14,7 @@ import com.threerings.presents.dobj.DSetEntry;
* numbers.
*/
public class InvocationRegistration
implements DSetEntry
implements DSet_Entry
{
/** The unique hash code associated with this invocation receiver class. */
public var receiverCode :String;
@@ -31,7 +31,7 @@ public class InvocationRegistration
this.receiverId = receiverId;
}
// documentation inherited from interface DSetEntry
// documentation inherited from interface DSet_Entry
public function getKey () :Object
{
return receiverCode;