server.js 784 B

123456789101112131415161718192021222324252627
  1. /*module.exports.introduce = introduce;
  2. module.exports.getSid = function(){ return sid; };
  3. module.exports.getName = function(){ return name; };
  4. module.exports.getDescription = function(){ return description; };
  5. module.exports.getDistance = function(){ return distance; };
  6. module.exports.getUplink = function(){ return uplink; };
  7. module.exports.isServer = true;
  8. module.exports.isUser = false;*/
  9. var server = function(){
  10. this.name = null;
  11. this.sid = null;
  12. this.description = null;
  13. this.distance = null;
  14. this.uplink = null;
  15. this.introduce = function(newName, newSid, newDescription, newDistance, newUplink){
  16. this.name = newName;
  17. this.sid = newSid;
  18. this.description = newDescription;
  19. this.distance = newDistance;
  20. this.uplink = newUplink;
  21. }
  22. }
  23. module.exports = server;