working GGS simulator in JS

This commit is contained in:
Jeena Paradies 2011-01-30 05:57:48 +01:00
parent a275990f62
commit 20a07dbd6a
8 changed files with 483 additions and 5 deletions

View file

@ -0,0 +1,16 @@
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);
});
}