content/hifi-content/elisa/production/rust-pills/scripts/checkPillOwner.js
2022-02-13 23:16:46 +01:00

32 lines
No EOL
669 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() {
var pillOwner = "";
this.remotelyCallable = [
"getPillOwner",
"setPillOwner"
];
this.getPillOwner = function() {
return pillOwner;
};
this.setPillOwner = function(avatarID) {
pillOwner = avatarID;
};
});