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