buildings

package
v0.0.0-...-a30bc99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL