Documentation ¶
Overview ¶
Package buildings provides structures and algorithms for producing random architectural styles and individual building appearances.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildingStyle ¶
type BuildingStyle struct { Description string `json:"description"` Decorations string `json:"decorations"` DoorStyle string `json:"door_style"` MaxStories int `json:"max_stories"` RoofStyle string `json:"roof_style"` StreetStyle string `json:"street_style"` WallStyle string `json:"wall_style"` WindowStyle string `json:"window_style"` }
BuildingStyle is a style of building
func GenerateStyle ¶
func GenerateStyle() (BuildingStyle, error)
GenerateStyle generates a random building style
func (BuildingStyle) Describe ¶
func (style BuildingStyle) Describe() string
Describe describes a building style
func (BuildingStyle) Simplify ¶
func (style BuildingStyle) Simplify() SimplifiedBuildingStyle
Simplify turns a BuildingStyle into a SimplifiedBuildingStyle
type SimplifiedBuildingStyle ¶
type SimplifiedBuildingStyle struct {
Description string `json:"description"`
}
SimplifiedBuildingStyle is a simplified version of a building style for display
Click to show internal directories.
Click to hide internal directories.