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

Inheritance: MonoBehaviour
Mostrar archivo 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_oe static_oe property

public static int SIZE
return int

displayColors public_oe property

public Dictionary displayColors
return Color32>.Dictionary

islandSeedInitial public_oe static_oe property

public static int islandSeedInitial
return int

islandType public_oe property

public string islandType
return string

lava public_oe property

public Lava, lava
return Lava,

map public_oe property

public Map, map
return Map,

mapMode public_oe static_oe property

public static string mapMode
return string

mat public_oe property

public Material mat
return Material

mesh public_oe property

public Mesh mesh
return Mesh

moistureGradientColors public_oe property

public Dictionary moistureGradientColors
return Color32>.Dictionary

noisyEdges public_oe property

public NoisyEdges, noisyEdges
return NoisyEdges,

numPoints public_oe property

public int numPoints
return int

pointType public_oe property

public string pointType
return string

random public_oe static_oe property

public static Random,UnityEngine random
return UnityEngine.Random

riverarray public_oe property

public List riverarray
return List

roads public_oe property

public Roads, roads
return Roads,

seed public_oe property

public float seed
return float

variant public_oe property

public float variant
return float