From 7bc9c7a00a9dcb92c70a557dd3523d0dee5917bb Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Mon, 23 Jun 2008 20:17:36 +0000 Subject: [PATCH] I need this to be clonable now on the client. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5193 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/crowd/data/OccupantInfo.as | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/crowd/data/OccupantInfo.as b/src/as/com/threerings/crowd/data/OccupantInfo.as index 0b2ceda3f..d0ce151a2 100644 --- a/src/as/com/threerings/crowd/data/OccupantInfo.as +++ b/src/as/com/threerings/crowd/data/OccupantInfo.as @@ -21,6 +21,7 @@ package com.threerings.crowd.data { +import com.threerings.util.ClassUtil; import com.threerings.util.Cloneable; import com.threerings.util.Integer; import com.threerings.util.Name; @@ -97,7 +98,11 @@ public class OccupantInfo extends SimpleStreamableObject */ public function clone () :Object { - throw new Error("Clone not implemented. Implement if you need it."); + var that :OccupantInfo = ClassUtil.newInstance(this) as OccupantInfo; + that.bodyOid = this.bodyOid; + that.username = this.username; + that.status = this.status; + return that; } // documentation inherited from interface DSet_Entry