content/hifi-content/rebecca/testing_utils/mousePressCallServer/mousePressCallServerDebug_server.js
2022-02-14 02:04:11 +01:00

21 lines
No EOL
465 B
JavaScript

(function() {
var _this;
var TestEntity = function() {
_this = this;
};
TestEntity.prototype = {
remotelyCallable: ['mousePressed'],
preload: function(entityID) {
_this.entityID = entityID;
},
mousePressed: function(entityID, event) {
print("Server script has received a mouse press: ", JSON.stringify(event));
}
};
return new TestEntity();
});