C# 클래스 ObjectPlacer, A-Study-in-Composition

파일 보기 프로젝트 열기: mortennobel/A-Study-in-Composition 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bounds Bounds
generator LSystem
groundColor Color
horizonColor Color
leavesVariation Variation
lightColor Color
paletteSaturation float
paletteValue float
placementSeed int
prefab GameObject
skyColor Color
skybox Material
starField StarField
starsColor Color
sunLight Light

공개 메소드들

메소드 설명
AddVariationColors ( List colors, Rand rand ) : void
Place ( ) : void
PlaceObject ( GameObject prefab, Vector3 pos, int x, int z, float spacing ) : void
Randomize ( bool newTheme = true ) : void
Randomize ( int seed, bool newTheme = true ) : void
RandomizeColors ( Rand hash, bool newTheme = true ) : void
RandomizePlacement ( Rand hash, bool newTheme = true ) : void
RandomizeTrees ( Rand hash, bool newTheme = true ) : void
UpdateGlobals ( ) : void

비공개 메소드들

메소드 설명
CalculateColor ( List colors, Color reference, HSVModifier modifier ) : Color
Clamp ( Vector2 value, float min, float max ) : Vector2
FullToPositiveRange ( float full ) : float
GetColor ( Variation, variation, float t ) : Color
GetPrimaryColors ( Color baseColor, Rand hash ) : List
LerpColorInHSV ( Color a, Color b, float t ) : Color
PickBestColor ( List colors, Color reference ) : Color
RandomVariation ( Rand hash, Vector2 reference, float fraction ) : Vector2
RandomVariation ( Rand hash, float reference, float fraction ) : float
WrapHueAround ( Vector4 colorToModify, Vector4 colorToCompareWith ) : Color

메소드 상세

AddVariationColors() 공개 메소드

public AddVariationColors ( List colors, Rand rand ) : void
colors List
rand Rand
리턴 void

Place() 공개 메소드

public Place ( ) : void
리턴 void

PlaceObject() 공개 메소드

public PlaceObject ( GameObject prefab, Vector3 pos, int x, int z, float spacing ) : void
prefab GameObject
pos Vector3
x int
z int
spacing float
리턴 void

Randomize() 공개 메소드

public Randomize ( bool newTheme = true ) : void
newTheme bool
리턴 void

Randomize() 공개 메소드

public Randomize ( int seed, bool newTheme = true ) : void
seed int
newTheme bool
리턴 void

RandomizeColors() 공개 메소드

public RandomizeColors ( Rand hash, bool newTheme = true ) : void
hash Rand
newTheme bool
리턴 void

RandomizePlacement() 공개 메소드

public RandomizePlacement ( Rand hash, bool newTheme = true ) : void
hash Rand
newTheme bool
리턴 void

RandomizeTrees() 공개 메소드

public RandomizeTrees ( Rand hash, bool newTheme = true ) : void
hash Rand
newTheme bool
리턴 void

UpdateGlobals() 공개 메소드

public UpdateGlobals ( ) : void
리턴 void

프로퍼티 상세

bounds 공개적으로 프로퍼티

public Bounds bounds
리턴 Bounds

generator 공개적으로 프로퍼티

public LSystem generator
리턴 LSystem

groundColor 공개적으로 프로퍼티

public Color groundColor
리턴 Color

horizonColor 공개적으로 프로퍼티

public Color horizonColor
리턴 Color

leavesVariation 공개적으로 프로퍼티

public Variation leavesVariation
리턴 Variation

lightColor 공개적으로 프로퍼티

public Color lightColor
리턴 Color

paletteSaturation 공개적으로 프로퍼티

public float paletteSaturation
리턴 float

paletteValue 공개적으로 프로퍼티

public float paletteValue
리턴 float

placementSeed 공개적으로 프로퍼티

public int placementSeed
리턴 int

prefab 공개적으로 프로퍼티

public GameObject prefab
리턴 GameObject

skyColor 공개적으로 프로퍼티

public Color skyColor
리턴 Color

skybox 공개적으로 프로퍼티

public Material skybox
리턴 Material

starField 공개적으로 프로퍼티

public StarField starField
리턴 StarField

starsColor 공개적으로 프로퍼티

public Color starsColor
리턴 Color

sunLight 공개적으로 프로퍼티

public Light sunLight
리턴 Light