Esempio n. 1
0
    // *** UTILITY FUNCTIONS ***

    // Rotates the prop towards a new grid orientation.
    public void Rotate(Grid.Orientation newOrientation)
    {
        orientation = newOrientation;
        UpdateOrientation();
    }
Esempio n. 2
0
 // Bookmarks this Entity's current status for easy fallback at a later point.
 public override void SetBookmark()
 {
     base.SetBookmark();
     BookmarkedOrientation = orientation;
 }
Esempio n. 3
0
 public Layout(Orientation orientation, Point size, Point origin)
 {
     this.orientation = orientation;
     this.size        = size;
     this.origin      = origin;
 }