Struct RepOverride
Represents the initial reputation of the player with a community.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: SlugBase.DataTypes
Assembly: SlugBase.dll
Syntax
public struct RepOverride
Constructors
RepOverride(JsonAny)
Creates a new RepOverride from JSON.
Declaration
public RepOverride(JsonAny json)
Parameters
Type | Name | Description |
---|---|---|
JsonAny | json | The JSON to load. |
RepOverride(Single, Single, Boolean)
Creates a new RepOverride.
Declaration
public RepOverride(float target, float strength = 1F, bool locked = false)
Parameters
Type | Name | Description |
---|---|---|
System.Single | target | The target like value of the player. |
System.Single | strength | The amount to lerp reputation towards |
System.Boolean | locked | If |
Fields
Locked
If true
, the like of the player will be locked to Target after it is set.
Declaration
public bool Locked
Field Value
Type | Description |
---|---|
System.Boolean |
Strength
The amount to lerp reputation towards Target when loaded.
Declaration
public float Strength
Field Value
Type | Description |
---|---|
System.Single |
Target
The target like value of the player.
Declaration
public float Target
Field Value
Type | Description |
---|---|
System.Single |