DustEngine  0.2.0
DustEngine.FieldsMap Class Reference

More...

Inheritance diagram for DustEngine.FieldsMap:
DustEngine.IDynamicState

Classes

class  FieldRecord
 

Public Types

enum class  FieldsMapMode { Custom = 0 , FieldsSpace = 1 , FactoryMachine = 2 }
 

Public Member Functions

int GetDynamicStateHashCode ()
 
bool Calculate (Vector3 worldPosition, float sequenceOffset, out float power)
 
bool Calculate (Vector3 worldPosition, float sequenceOffset, out float power, out Color color)
 
bool Calculate (FactoryMachine.FactoryInstanceState factoryInstanceState, out float power, out Color color)
 
bool Calculate (Field.Point fieldPoint)
 
bool HasFields ()
 
FieldRecord.BlendPowerMode GetDefaultBlendPower (Field field)
 
FieldRecord.BlendColorMode GetDefaultBlendColor (Field field)
 
FieldRecord AddField (Field field)
 

Static Public Member Functions

static FieldsMap FactoryMachine ()
 
static FieldsMap FieldsSpace ()
 

Protected Attributes

List< FieldRecordm_Fields = new List<FieldRecord>()
 

Properties

FieldsMapMode fieldsMapMode [get]
 
bool calculatePower [get, set]
 
float defaultPower [get, set]
 
bool calculateColor [get, set]
 
Color defaultColor [get, set]
 
List< FieldRecordfields [get]
 

Detailed Description

Main idea for color usage:

  • R+G+B define color
  • A define intensity of color in this point

If need change intensity of some color only require multiple A for required value


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