Cleanup of various things, made writing method handlers in web_interface easier now you just have to check args

This commit is contained in:
KimLS
2014-08-04 14:35:10 -07:00
parent dd88d0096b
commit 2ed960d733
7 changed files with 52 additions and 116 deletions
+2 -1
View File
@@ -43,7 +43,8 @@
}
else if(obj.id == 'get_zone_info_id') {
socket.send(JSON.stringify({id: 'subscribe_id', method: 'Zone.Subscribe', params: [obj.result["zone_id"], obj.result["instance_id"], 'NPCPosition']}));
} else if(obj.method = "On.NPCPosition") {
socket.send(JSON.stringify({id: 'on_entity_pos_id', method: 'Zone.GetInitialEntityPositions', params: [obj.result["zone_id"], obj.result["instance_id"]]}));
} else if(obj.method == "On.NPCPosition") {
}
};
</script>