Implement serialization, clipboard

This commit is contained in:
Maik Macho
2017-11-21 22:24:25 +01:00
parent 31613aa412
commit 6831781569
9 changed files with 151 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
function Pos(x,y)
{
this.__serialized_name__ = ".";
this.x = x;
this.y = y;
@@ -39,4 +40,8 @@ function Pos(x,y)
}
function clamp(v, min, max) { return v < min ? min : v > max ? max : v; }
}
}
// This is ugly, but Pos.__serialized_name__ == ".";
// Let's keep the character count low.
window["."] = Pos;