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