C# Class ObjectPlacer, A-Study-in-Composition

Afficher le fichier Open project: mortennobel/A-Study-in-Composition Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddVariationColors() public méthode

public AddVariationColors ( List colors, Rand rand ) : void
colors List
rand Rand
Résultat void

Place() public méthode

public Place ( ) : void
Résultat void

PlaceObject() public méthode

public PlaceObject ( GameObject prefab, Vector3 pos, int x, int z, float spacing ) : void
prefab GameObject
pos Vector3
x int
z int
spacing float
Résultat void

Randomize() public méthode

public Randomize ( bool newTheme = true ) : void
newTheme bool
Résultat void

Randomize() public méthode

public Randomize ( int seed, bool newTheme = true ) : void
seed int
newTheme bool
Résultat void

RandomizeColors() public méthode

public RandomizeColors ( Rand hash, bool newTheme = true ) : void
hash Rand
newTheme bool
Résultat void

RandomizePlacement() public méthode

public RandomizePlacement ( Rand hash, bool newTheme = true ) : void
hash Rand
newTheme bool
Résultat void

RandomizeTrees() public méthode

public RandomizeTrees ( Rand hash, bool newTheme = true ) : void
hash Rand
newTheme bool
Résultat void

UpdateGlobals() public méthode

public UpdateGlobals ( ) : void
Résultat void

Property Details

bounds public_oe property

public Bounds bounds
Résultat Bounds

generator public_oe property

public LSystem generator
Résultat LSystem

groundColor public_oe property

public Color groundColor
Résultat Color

horizonColor public_oe property

public Color horizonColor
Résultat Color

leavesVariation public_oe property

public Variation leavesVariation
Résultat Variation

lightColor public_oe property

public Color lightColor
Résultat Color

paletteSaturation public_oe property

public float paletteSaturation
Résultat float

paletteValue public_oe property

public float paletteValue
Résultat float

placementSeed public_oe property

public int placementSeed
Résultat int

prefab public_oe property

public GameObject prefab
Résultat GameObject

skyColor public_oe property

public Color skyColor
Résultat Color

skybox public_oe property

public Material skybox
Résultat Material

starField public_oe property

public StarField starField
Résultat StarField

starsColor public_oe property

public Color starsColor
Résultat Color

sunLight public_oe property

public Light sunLight
Résultat Light