Table of Contents

Namespace ONITwitchLib

Classes

Consts

Various constants for use across Twitch Integration and mods that depend on it.

Consts.EventWeight

Constants to use for event weights. Using these constants is not mandatory, but is heavily suggested so that events have a consistent relative frequency.
Suggested usage is:

using static ONITwitchLib.Consts;
// ...
var myWeight = EventWeight.Common;
DataManager

Provides methods to manipulate data of EventInfos

DeleteOnSpawn

Deletes an object immediately upon spawning.

EventGroup

A group of associated EventInfos with relative weights. EventInfos in an EventGroup will attempt to be spread out for variety.

EventInfo

Represents an event that is known to the EventManager.

EventManager

Provides a way to obtain a method by its id.

ExtraTags

Additional tags that the Twitch mod uses

ListExt

Provides additional utilities for working with lists.

ThreadRandom

A Random that is safe to use from any thread.

ToastManager

Provides methods for creating toasts.

TwitchModInfo

Various information about the Twitch mod, primarily for integrations.

TwitchSimHashes

SimHashes for the Twitch mod.

WaitTimeOrSignal

A class for use in Unity coroutines that continues execution after a duration has elapsed, or a function signals to continue, whichever comes first.

Enums

Danger

Represents how much harm an EventInfo can do. This estimate should be a reasonable maximum and should take into account both short-term and long-term consequences.