pass loaded portal details via a hook into the portal render code - so placeholder portals get updated (highlighters, etc) as you view them

This commit is contained in:
Jon Atkins
2015-06-29 02:51:13 +01:00
parent bed576808b
commit 1fb27a75c4
3 changed files with 12 additions and 2 deletions

View File

@ -69,6 +69,13 @@ window.MapDataRequest = function() {
// ensure we have some initial map status
this.setStatus ('startup', undefined, -1);
// add a portalDetailLoaded hook, so we can use the exteneed details to update portals on the map
var _this = this;
addHook('portalDetailLoaded',function(data){
_this.render.processGameEntities([data.ent]);
});
}