relation actions menu. This should make it easier to merge relations, etc. etc.
[potlatch2.git] / net / systemeD / halcyon / connection / Relation.as
index 8ac31927f11b97ab1a6c9a8b0035c292a1fdbcc0..e6bdbd155389d00a3e82dc4886091c629835643f 100644 (file)
@@ -28,6 +28,15 @@ package net.systemeD.halcyon.connection {
             return members.length;
         }
 
+               public function get memberEntities():Array {
+                       var list:Array=[];
+                       for (var index:uint = 0; index < members.length; index++) {
+                               var e:Entity=members[index].entity;
+                               if (list.indexOf(e)==-1) list.push(e);
+                       }
+                       return list;
+               }
+
         public function findEntityMemberIndex(entity:Entity):int {
             for (var index:uint = 0; index < members.length; index++) {
                 var member:RelationMember = members[index];