Unify selection ControllerStates so they can work on either background or editable...
[potlatch2.git] / net / systemeD / halcyon / MapPaint.as
index c1fb5a6e84b2f9bc47123549318f36cf6bb3fa26..a340f607529dddcad01ae157755dea0876aa066b 100644 (file)
@@ -363,6 +363,11 @@ package net.systemeD.halcyon {
                        ruleset.loadFromCSS(url);
         }
 
+               /** Does an entity belong to this layer? */
+               public function sameConnection(entity:Entity):Boolean {
+                       return entity.connection==this.connection;
+               }
+
                // ==================== Start of code moved from Map.as
 
                // Listeners for Connection events