From ae26fb8bcd5b4ff9d9c6179a584da17c888ef888 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 12 Jan 2007 19:15:46 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/ezgame/data/PropertySetEvent.as | 9 +++++++++ .../com/threerings/ezgame/data/PropertySetEvent.java | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/as/com/threerings/ezgame/data/PropertySetEvent.as b/src/as/com/threerings/ezgame/data/PropertySetEvent.as index 178918aa..b9943c73 100644 --- a/src/as/com/threerings/ezgame/data/PropertySetEvent.as +++ b/src/as/com/threerings/ezgame/data/PropertySetEvent.as @@ -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; diff --git a/src/java/com/threerings/ezgame/data/PropertySetEvent.java b/src/java/com/threerings/ezgame/data/PropertySetEvent.java index 7170a6eb..92adcafd 100644 --- a/src/java/com/threerings/ezgame/data/PropertySetEvent.java +++ b/src/java/com/threerings/ezgame/data/PropertySetEvent.java @@ -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;