(function () { function preload(id) { _this.entityID = id; var avatarIDs = AvatarList.getAvatarIdentifiers(); console.log("ZRF HERE 01: " + AvatarList); console.log("ZRF HERE 02: " + JSON.stringify(avatarIDs)); avatarIDs = AvatarList.getAvatarsInRange([0, 0, 0], 1000000); console.log("ZRF HERE 03: " + JSON.stringify(avatarIDs)); avatarIDs.forEach(function(id) { var thisAvatar = AvatarList.getAvatar(id); console.log("ZRF HERE 04: " + thisAvatar); console.log("ZRF HERE 04: " + JSON.stringify(thisAvatar.position)); }); } function unload() { } // Constructor var _this = null; function ZachTest() { _this = this; this.entityID = null; } // Entity methods ZachTest.prototype = { preload: preload, unload: unload }; return new ZachTest(); });