Battle Talent  V11
Public Types | Public Member Functions | Public Attributes | Events | List of all members
CrossLink.DynamicModifier Class Reference

modifier can be applied by ModOP or buff then the system will ask the role or system, if this modifier is enabled then we'll pull the value out of this modifier then the value will be activated in the way they configed More...

Public Types

enum class  SettingType { UseValue , EnableBySetting , DisableBySetting }
 
enum class  SettingValueEffect { UseSettingValue , Multiply }
 

Public Member Functions

void NotifyChange ()
 
bool IsUnlocked ()
 
void Init (string name)
 
void Save ()
 
bool IsEnabled ()
 
void SetEnabled ()
 
void ResetEnable ()
 
void SetValue (float v)
 
void RecoverValue ()
 recover value state to default More...
 
void Reset ()
 
float GetValue ()
 

Public Attributes

string name
 
bool hiddenFromUI = false
 
string dependUnlockItem
 
SettingType setting = SettingType.UseValue
 define wehere to read value More...
 
SettingValueEffect valueEffect = SettingValueEffect.UseSettingValue
 only affect when enabled by setting More...
 
float valueInSetting
 used when toggle to SettingType.EnableBySetting More...
 
float valueMax
 
float valueMin
 
float increseValue = 0.1f
 

Events

System.Action< DynamicModifierChangedEvent
 

Detailed Description

modifier can be applied by ModOP or buff then the system will ask the role or system, if this modifier is enabled then we'll pull the value out of this modifier then the value will be activated in the way they configed

Member Function Documentation

◆ RecoverValue()

void CrossLink.DynamicModifier.RecoverValue ( )

recover value state to default

Member Data Documentation

◆ setting

SettingType CrossLink.DynamicModifier.setting = SettingType.UseValue

define wehere to read value

◆ valueEffect

SettingValueEffect CrossLink.DynamicModifier.valueEffect = SettingValueEffect.UseSettingValue

only affect when enabled by setting

◆ valueInSetting

float CrossLink.DynamicModifier.valueInSetting

used when toggle to SettingType.EnableBySetting