Fill out PropertySetEvent's toString() for easier debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@146 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -10,6 +10,8 @@ import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
import com.threerings.io.Streamer;
|
||||
|
||||
import com.threerings.util.StringBuilder;
|
||||
|
||||
import com.threerings.presents.dobj.DObject;
|
||||
import com.threerings.presents.dobj.NamedEvent;
|
||||
|
||||
@@ -84,6 +86,13 @@ public class PropertySetEvent extends NamedEvent
|
||||
}
|
||||
}
|
||||
|
||||
override protected function toStringBuf (buf :StringBuilder) :void
|
||||
{
|
||||
buf.append("PropertySetEvent ");
|
||||
super.toStringBuf(buf);
|
||||
buf.append(", index=").append(_index);
|
||||
}
|
||||
|
||||
/** The index of the property, if applicable. */
|
||||
protected var _index :int;
|
||||
|
||||
|
||||
@@ -80,6 +80,14 @@ public class PropertySetEvent extends NamedEvent
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void toString (StringBuilder buf)
|
||||
{
|
||||
buf.append("PropertySetEvent ");
|
||||
super.toString(buf);
|
||||
buf.append(", index=").append(_index);
|
||||
}
|
||||
|
||||
/** The index of the property, if applicable. */
|
||||
protected int _index;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user