generator

package
v0.0.0-...-bd015fa Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2015 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiamondSquareGenerator

type DiamondSquareGenerator struct {
	Roughness float32
	X         int
	Y         int
}

func NewDiamondSquareGenerator

func NewDiamondSquareGenerator(roughness float32, x int, y int) *DiamondSquareGenerator

func (*DiamondSquareGenerator) Generate

func (d *DiamondSquareGenerator) Generate() (*terrain.Terrain, error)

type Generator

type Generator interface {
	Generate() (*terrain.Terrain, error)
}

Jump to

Keyboard shortcuts

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