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:
@@ -24,11 +24,13 @@ package com.threerings.crowd.data {
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
import com.threerings.io.SimpleStreamableObject;
|
||||
import com.threerings.util.Hashable;
|
||||
|
||||
/**
|
||||
* Contains information on the current place occupied by a body.
|
||||
*/
|
||||
public class Place extends SimpleStreamableObject
|
||||
implements Hashable
|
||||
{
|
||||
/** The oid of this place's {@link PlaceObject}. */
|
||||
public var placeOid :int;
|
||||
@@ -41,6 +43,12 @@ public class Place extends SimpleStreamableObject
|
||||
this.placeOid = placeOid;
|
||||
}
|
||||
|
||||
// from Object
|
||||
override public function hashCode () :int
|
||||
{
|
||||
return placeOid;
|
||||
}
|
||||
|
||||
// from Object
|
||||
public function equals (other :Object) :Boolean
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user