added rotate to structure
This commit is contained in:
parent
f9c10cfc0b
commit
7f8c0d154c
@ -10,6 +10,10 @@ abstract Structure(Array<Layer>) from Array<Layer> {
|
||||
public inline function height():Int {
|
||||
return this.length;
|
||||
}
|
||||
|
||||
public function rotate():Structure {
|
||||
return [for (i in 0...height()) this[i].rotate()];
|
||||
}
|
||||
}
|
||||
|
||||
abstract Layer(Array<Array<Block>>) from Array<Array<Block>> {
|
||||
|
Loading…
Reference in New Issue
Block a user