Commit f0508eb4 authored by Colomban Wendling's avatar Colomban Wendling
Browse files

Add Tile.rotation property

parent 514d1c2a
......@@ -49,6 +49,7 @@ namespace OVCC
this._objects.reverse ();
}
}
public uint rotation { get; private set; }
construct {
var links = 0;
......@@ -85,6 +86,7 @@ namespace OVCC
public void rotate (int wise)
{
wise = (int)Utils.clock_mod (wise, 4);
this.rotation = (this.rotation + wise) % 4;
foreach (var o in this._objects) {
o.rotate (wise);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment