More progress.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3849 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user