Show / Hide Table of Contents

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.
Inheritance
System.Object
CustomEntity
CustomStatusEffect
Inherited Members
CustomEntity.SourceMod
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 Source

CustomStatusEffect(StatusEffect, Boolean)

Custom status effect from a .
Can fix references for Mock<T>s.
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 Source

FixReference

Indicator if references from Mock<T>s will be replaced at runtime.
Declaration
public bool FixReference { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

StatusEffect

The for this custom status effect.
Declaration
public StatusEffect StatusEffect { get; }
Property Value
Type Description
StatusEffect

Methods

| Improve this Doc View Source

Equals(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
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Extension Methods

PrefabExtension.FixReferences(Object)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾