메소드 | 설명 | |
---|---|---|
Chunk2D ( |
Constructs a new chunk with a reference to the passed chunk template, using that template's width and height and performing deep copies of the lists of contexts and anchors of that template.
|
|
ToString ( ) : string |
Returns the position of this chunk within the level as string.
|
메소드 | 설명 | |
---|---|---|
Rotate ( ) : bool |
Rotates this chunk clock-wise by 90°, changing the positions of all contexts and switching width and height.
|
|
SetPosition ( Vector2F position ) : void |
Sets the position of this chunk within the level and changes the relative positions of all anchors of this chunk to match its rotation.
|
public Chunk2D ( |
||
chunkTemplate | Chunk template the new chunk will be based on. | |
리턴 | System |