C# Class MapDraw, Unity-polygon-map-generation

Inheritance: MonoBehaviour
Show file Open project: Keshire/Unity-polygon-map-generation Class Usage Examples

Public Properties

Property Type Description
SIZE int
displayColors Color32>.Dictionary
islandSeedInitial int
islandType string
lava Lava,
map Map,
mapMode string
mat Material
mesh Mesh
moistureGradientColors Color32>.Dictionary
noisyEdges NoisyEdges,
numPoints int
pointType string
random UnityEngine.Random
riverarray List
roads Roads,
seed float
variant float

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
calculateLighting ( Center, p, Corner, r, Corner, s ) : float
colorWithSlope ( Color32 color, Center, p, Center, q, Edge, edge ) : Color32
colorWithSmoothColors ( Color32 color, Center, p, Center, q, Edge, edge ) : Color32
drawMap ( string mode ) : void
drawQuadLine ( Vector2 v1, Vector2 v2, float width ) : void
go ( string newIslandType, string newPointType, int newNumPoints ) : void
newIsland ( string newIslandType, int newNumPoints ) : void
renderDebugPolygons ( ) : void
renderEdges ( ) : void
renderNoisyEdges ( ) : void
renderNoisyPolygons ( ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

calculateLighting() public method

public calculateLighting ( Center, p, Corner, r, Corner, s ) : float
p Center,
r Corner,
s Corner,
return float

colorWithSlope() public method

public colorWithSlope ( Color32 color, Center, p, Center, q, Edge, edge ) : Color32
color UnityEngine.Color32
p Center,
q Center,
edge Edge,
return UnityEngine.Color32

colorWithSmoothColors() public method

public colorWithSmoothColors ( Color32 color, Center, p, Center, q, Edge, edge ) : Color32
color UnityEngine.Color32
p Center,
q Center,
edge Edge,
return UnityEngine.Color32

drawMap() public method

public drawMap ( string mode ) : void
mode string
return void

drawQuadLine() public method

public drawQuadLine ( Vector2 v1, Vector2 v2, float width ) : void
v1 Vector2
v2 Vector2
width float
return void

go() public method

public go ( string newIslandType, string newPointType, int newNumPoints ) : void
newIslandType string
newPointType string
newNumPoints int
return void

newIsland() public method

public newIsland ( string newIslandType, int newNumPoints ) : void
newIslandType string
newNumPoints int
return void

renderDebugPolygons() public method

public renderDebugPolygons ( ) : void
return void

renderEdges() public method

public renderEdges ( ) : void
return void

renderNoisyEdges() public method

public renderNoisyEdges ( ) : void
return void

renderNoisyPolygons() public method

public renderNoisyPolygons ( ) : void
return void

Property Details

SIZE public static property

public static int SIZE
return int

displayColors public property

public Dictionary displayColors
return Color32>.Dictionary

islandSeedInitial public static property

public static int islandSeedInitial
return int

islandType public property

public string islandType
return string

lava public property

public Lava, lava
return Lava,

map public property

public Map, map
return Map,

mapMode public static property

public static string mapMode
return string

mat public property

public Material mat
return Material

mesh public property

public Mesh mesh
return Mesh

moistureGradientColors public property

public Dictionary moistureGradientColors
return Color32>.Dictionary

noisyEdges public property

public NoisyEdges, noisyEdges
return NoisyEdges,

numPoints public property

public int numPoints
return int

pointType public property

public string pointType
return string

random public static property

public static Random,UnityEngine random
return UnityEngine.Random

riverarray public property

public List riverarray
return List

roads public property

public Roads, roads
return Roads,

seed public property

public float seed
return float

variant public property

public float variant
return float