Class CustomStatusEffect
Main interface for adding custom status effects to the game.
All custom status effects have to be wrapped inside this class to add it to Jötunns ItemManager.
All custom status effects have to be wrapped inside this class to add it to Jötunns ItemManager.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Jotunn.Entities
Assembly: Jotunn.dll
Syntax
public class CustomStatusEffect : CustomEntity
Constructors
| Improve this Doc View SourceCustomStatusEffect(StatusEffect, Boolean)
Declaration
public CustomStatusEffect(StatusEffect statusEffect, bool fixReference)
Parameters
| Type | Name | Description |
|---|---|---|
| StatusEffect | statusEffect | A preloaded |
| System.Boolean | fixReference | If true references for Mock<T> objects get resolved at runtime by Jötunn. |
Properties
| Improve this Doc View SourceFixReference
Indicator if references from Mock<T>s will be replaced at runtime.
Declaration
public bool FixReference { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
StatusEffect
The for this custom status effect.
Declaration
public StatusEffect StatusEffect { get; }
Property Value
| Type | Description |
|---|---|
| StatusEffect |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
IsValid()
Checks if a custom status effect is valid (i.e. has a ).
Declaration
public bool IsValid()
Returns
| Type | Description |
|---|---|
| System.Boolean | true if all criteria is met |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()