Regenerated from the Java version.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4799 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-08-01 17:24:26 +00:00
parent 871cc64819
commit 010b2fc77a
@@ -24,11 +24,13 @@ package com.threerings.crowd.data {
import com.threerings.io.ObjectInputStream; import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream; import com.threerings.io.ObjectOutputStream;
import com.threerings.io.SimpleStreamableObject; import com.threerings.io.SimpleStreamableObject;
import com.threerings.util.Hashable;
/** /**
* Contains information on the current place occupied by a body. * Contains information on the current place occupied by a body.
*/ */
public class Place extends SimpleStreamableObject public class Place extends SimpleStreamableObject
implements Hashable
{ {
/** The oid of this place's {@link PlaceObject}. */ /** The oid of this place's {@link PlaceObject}. */
public var placeOid :int; public var placeOid :int;
@@ -41,6 +43,12 @@ public class Place extends SimpleStreamableObject
this.placeOid = placeOid; this.placeOid = placeOid;
} }
// from Object
override public function hashCode () :int
{
return placeOid;
}
// from Object // from Object
public function equals (other :Object) :Boolean public function equals (other :Object) :Boolean
{ {