Exemple #1
0
    // *** UTILITY FUNCTIONS ***

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