ProceduralPlanets
ProceduralPlanets.Blueprint Class Reference

This base class for all blueprints which contains core classes, lists, and methods common to all blueprints. Planet and Ring blueprites are derived from this class. More...

Classes

class  BlueprintPropertyColor
 
class  BlueprintPropertyFloat
 
class  BlueprintPropertyMaterial
 

Public Member Functions

virtual float GetMin (string _key)
 Gets the minimum value of a PropertyFloat (this will be the lowest/min value of Random.Range when planet/ring is random setting a property. More...
 
virtual float GetMax (string _key)
 Gets the maximum value of a PropertyFloat (this will be the highest/max value of Random.Range when planet/ring is random setting a property. More...
 
virtual Color GetColor (string _key)
 Gets the base color of a Property Color (hue, saturation, and brightness ranges will be relative to this color). More...
 
virtual float GetHueRange (string _key)
 Gets the Hue range that wil determine the random min/max value of hue from the base color of a ProeprtyColor. More...
 
virtual float GetSaturationRange (string _key)
 Gets the Saturationrange that wil determine the random min/max value of saturation from the base color of a ProeprtyColor. More...
 
virtual float GetBrightnessRange (string _key)
 Gets the Brightness range that wil determine the random min/max value of brightness from the base color of a ProeprtyColor. More...
 
virtual int GetMaterialMask (string _key)
 Gets the material mask to be used when materials is randomly selected in a PropertyMaterial. More...
 
virtual int GetMaterialLength (string _key)
 Gets the length mask string array. More...
 

Public Attributes

List< BlueprintPropertyFloatblueprintPropertyFloats = new List<BlueprintPropertyFloat>(0)
 
List< BlueprintPropertyColorblueprintPropertyColors = new List<BlueprintPropertyColor>(0)
 
List< BlueprintPropertyMaterialblueprintPropertyMaterials = new List<BlueprintPropertyMaterial>(0)
 

Protected Member Functions

virtual void AddBlueprintPropertyFloat (string _key, string _label, float _min, float _max, bool _clamp01, bool _displayAsInt)
 Adds a BlueprintPropertyFloat which is used by derived classes in the Reset() method to add all the settings for a particular planet/ring type. More...
 
virtual void AddBlueprintPropertyColor (string _key, string _label, Color _color, float _hueRange, float _saturationRange, float _brightnessRange)
 Adds a BlueprintPropertyColor which is used by derived classes in the Reset() method to add all the settings for a particular planet/ring type. More...
 
virtual void AddBlueprintPropertyMaterial (string _key, string _label, ProceduralMaterial[] _materials)
 Adds a BlueprintPropertyMaterial which is used by derived classes in the Reset() method to add all the settings for a particular planet/ring type. More...
 
virtual BlueprintPropertyFloat FindBlueprintPropertyFloat (string _key)
 Finds a BlueprintPropertyFloat by key. More...
 
virtual BlueprintPropertyColor FindBlueprintPropertyColor (string _key)
 Finds a BlueprintPropertyColor by key. More...
 
virtual BlueprintPropertyMaterial FindBlueprintPropertyMaterial (string _key)
 Finds a BlueprintPropertyMaterial by key. More...
 

Detailed Description

This base class for all blueprints which contains core classes, lists, and methods common to all blueprints. Planet and Ring blueprites are derived from this class.

Version 1.0 - 2018 (c) Imphenzia AB - Author: Stefan Persson

Inheritance diagram for ProceduralPlanets.Blueprint:
ProceduralPlanets.BlueprintPlanet ProceduralPlanets.BlueprintRing ProceduralPlanets.BlueprintGasPlanet ProceduralPlanets.BlueprintSolidPlanet

The documentation for this class was generated from the following file: