change relation.appendMember to use the undo system, and update various places as...
[potlatch2.git] / net / systemeD / halcyon / connection / RelationMemberEvent.as
1 package net.systemeD.halcyon.connection {
2
3     import flash.events.Event;
4
5     public class RelationMemberEvent extends EntityEvent {
6         private var _relation:Relation;
7         private var _index:int;
8
9         public function RelationMemberEvent(type:String, member:Entity, relation:Relation, index:int) {
10             super(type, member);
11             this._relation = relation;
12             this._index = index;
13         }
14
15         public function get relation():Relation { return _relation; }
16         public function get member():Entity { return entity; }
17         public function get index():uint { return _index; }
18
19         public override function toString():String {
20             return super.toString() + " in "+_relation+" at "+_index;
21         }
22     }
23
24 }
25