Use the new ObjectMarshaller.

Note that the default value of the encodeArrayElements has changed to reflect
the more general-purpose use.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@351 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2007-07-06 22:27:16 +00:00
parent 54c571f7f5
commit 9b5d3cca12
5 changed files with 16 additions and 158 deletions
@@ -26,6 +26,7 @@ import flash.events.Event;
import flash.utils.ByteArray;
import com.threerings.util.Name;
import com.threerings.util.ObjectMarshaller;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
@@ -36,8 +37,6 @@ import com.threerings.presents.dobj.DSet;
import com.threerings.parlor.game.data.GameObject;
import com.threerings.parlor.turn.data.TurnGameObject;
import com.threerings.ezgame.util.EZObjectMarshaller;
public class EZGameObject extends GameObject
implements TurnGameObject
{
@@ -142,7 +141,7 @@ public class EZGameObject extends GameObject
var count :int = ins.readInt();
while (count-- > 0) {
var key :String = ins.readUTF();
var value :Object = EZObjectMarshaller.decode(ins.readObject());
var value :Object = ObjectMarshaller.decode(ins.readObject());
_props[key] = value;
}
}