More progress.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3849 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-02-14 04:07:02 +00:00
parent 8366c150f4
commit 4d7fb64b8c
16 changed files with 582 additions and 38 deletions
@@ -2,7 +2,12 @@ package com.threerings.presents.dobj {
import flash.events.EventDispatcher;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
public class DObject extends EventDispatcher
implements Streamable
{
public function getOid ():int
{
@@ -14,6 +19,18 @@ public class DObject extends EventDispatcher
}
// documentation inherited from interface Streamable
public function writeObject (out :ObjectOutputStream) :void
{
out.writeInt(_oid);
}
// documentation inherited from interface Streamable
public function readObject (ins :ObjectInputStream) :void
{
_oid = ins.readInt();
}
protected var _oid :int;
}
}