36 lines
No EOL
811 B
JavaScript
36 lines
No EOL
811 B
JavaScript
//
|
|
// checkPillOwner.js
|
|
// Saves the pill owner data to prevent feeding other users pills
|
|
//
|
|
// Author: Elisa Lupin-Jimenez
|
|
// Copyright High Fidelity 2018
|
|
//
|
|
// Licensed under the Apache 2.0 License
|
|
// See accompanying license file or http://apache.org/
|
|
//
|
|
// All assets are under CC Attribution Non-Commerical
|
|
// http://creativecommons.org/licenses/
|
|
//
|
|
|
|
(function() {
|
|
|
|
print("loading checkPillOwner.js");
|
|
|
|
var pillOwner = "";
|
|
|
|
this.remotelyCallable = [
|
|
"getPillOwner",
|
|
"setPillOwner"
|
|
];
|
|
|
|
this.getPillOwner = function() {
|
|
print("returning owner " + pillOwner);
|
|
return pillOwner;
|
|
};
|
|
|
|
this.setPillOwner = function(avatarID) {
|
|
print("setting new owner as ", avatarID);
|
|
pillOwner = avatarID;
|
|
};
|
|
|
|
}); |