"use strict"; (function () { // BEGIN LOCAL_SCOPE var _this = this; var blocksChannel = "blocks-channel"; _this.preload = function(entityID) { _this.entityID = entityID; } _this.enterEntity = function(entityID) { print("entered zone"); Messages.sendMessage(blocksChannel, "startup"); } _this.leaveEntity = function(entityID) { print("left zone"); Messages.sendMessage(blocksChannel, "shutdown"); } _this.unload = function(entityID) { } })