This repository has been archived on 2025-08-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
GGS/games/tic-tac-toe-js/js/GGS.js
2011-01-30 05:57:48 +01:00

16 lines
392 B
JavaScript

function GGSI(game_name) {
var world = new Storage(game_name, "world");
this.__defineGetter__("world", function(){
return world;
});
var localStorage = new Storage(game_name, "localStorage");
this.__defineGetter__("localStorage", function(){
return localStorage;
});
var game_n = game_name;
this.__defineGetter__("users", function(){
return GameServerI.users(game_n);
});
}