POIs, and relations, and stuff :)
[potlatch2.git] / net / systemeD / halcyon / connection / Entity.as
index 7e5e8a6b5720ef98875c0b193b663b516089cfcf..1e77bd0582798cd1235d245ff2e4f60271c70072 100644 (file)
@@ -8,12 +8,14 @@ package net.systemeD.halcyon.connection {
         private var _version:uint;
         private var tags:Object = {};
         private var modified:Boolean = false;
+               private var _loaded:Boolean = true;
                private var parents:Dictionary = new Dictionary();
 
-        public function Entity(id:Number, version:uint, tags:Object) {
+        public function Entity(id:Number, version:uint, tags:Object, loaded:Boolean) {
             this._id = id;
             this._version = version;
             this.tags = tags;
+                       this._loaded = loaded;
             modified = id < 0;
         }
 
@@ -25,6 +27,14 @@ package net.systemeD.halcyon.connection {
             return _version;
         }
 
+        public function get loaded():Boolean {
+            return _loaded;
+        }
+
+               public function updateEntityProperties(v:uint,t:Object,l:Boolean):void {
+                       _version=v; tags=t; _loaded=l;
+               }
+
                // Tag-handling methods
 
         public function hasTags():Boolean {