Click or drag to resize

Effect Structure

Denotes a change in the value of a stat.

Namespace:  Kit.Containers
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
[SerializableAttribute]
public struct Effect
Request Example View Source

The Effect type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleEffect(String, String)
Create a new Effect.
Public methodCode exampleEffect(String, EffectType, Single)
Create a new Effect.
Top
Methods
  NameDescription
Public methodStatic memberConvert
Converts the EffectType and value to a human-readable string.
Public methodStatic memberParse

Converts a string to EffectType and value.

"x" at the beginning of a string translates to Multiplier, a string ending with "%" means Percentage, while neither of those means Constant. Rest of the string should be a number denoting the value.

Public methodToString (Overrides ValueTypeToString.)
Top
Fields
  NameDescription
Public fieldStat
The stat to which the change should apply.
Public fieldType
How does it change the value?
Public fieldValue
The amount of change.
Top
See Also