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