EffectPack ​
Represents an abstract base class for effect packs.
Kind: Abstract class
Namespace: CrowdControl.Games
Inheritance: IDisposable → IEffectPack → IEffectPack
Public Member Functions
Task
Task
Task
Performs string interpolation on the given text using the metadata values.
Task
Flushes the effect queue.
PrecheckResult
string
Converts an CrowdControl.Common.EffectRequest to a string representation.
void
void
Task
Stops the effect associated with the given request.
bool
Cancels a currently-running effect associated with the given request.
bool
Cancels a currently-running effect associated with the given request.
bool
bool
void
Stream
Gets the resource stream for the specified resource name.
byte[]
Gets the resource bytes for the specified resource name.
string
Displays the start message for the effect.
string
Displays the start message for the effect.
void
Disposes of the effect pack and releases any resources it holds.
void
Report the status of an of effect type to the server.
void
Report the status of an of effect type to the server.
void
Report the status of an of effect type to the server.
void
Report the status of an of effect type to the server.
void
Report the status of an of effect type to the server.
Public Static Functions
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
Public Attributes
EffectScheduler
EffectScheduler
The queue of effects to be processed.
ConcurrentQueue
ResponseQueue
The queue of responses to be sent back to the Crowd Control service.
Properties
SITimeSpan
RetryMaxTime
[get, set]
The maximum amount of time to retry a failed effect attempt.
SITimeSpan
RetryMaxTimeAggressive
[get, set]
The maximum amount of time to retry a failed effect attempt (aggressive).
uint
RetryMaxAttempts
[get, set]
The maximum number of attempts to retry a failed effect.
uint
RetryMaxAttemptsAggressive
[get, set]
The maximum number of attempts to retry a failed effect (aggressive).
NonNumericRange
RetryInterval
[get, set]
The minimum and maximum intervals to wait between retries of a failed effect.
NonNumericRange
RetryIntervalAggressive
[get, set]
The minimum and maximum intervals to wait between retries of a failed effect (aggressive).
IEffectCallbacks
Callbacks
[get, set]
IGUIProvider
GUIProvider
[get, set]
An optional GUI provider for the effect pack dialogs.
Game
Game
[get, ]
IGameConnector
GameConnector
[get, set]
TextEncoding
TextEncoding
[get, ]
The encoding to be used for text in this effect pack.
string
TestEffectID
[get, ]
The ID of the effect to be used for testing purposes.
SessionID
SessionID
[get, set]
PackStorage
Storage
[get, ]
The persistent storage for the effect pack.
IReadOnlyDictionary
MetadataDefaults
[get, ]
The default/fallback values for game metadata.
List
MenuActions
[get, ]
UISettings
UISettings
[get, ]
SITimeSpan
GlobalMinimumDelay
[get, set]
ConcurrentDictionary
MetadataLastValue
[get, ]
The last known values of the game metadata.
IDictionary
MetadataAutoPoll
[get, ]
The polling intervals for the game metadata.
List
MetadataCommon
[get, ]
The list of included metadata entries that are common to all effects.
List
MetadataTimed
[get, ]
The list of included metadata entries that are common to all timed effects.
List
MetadataInstant
[get, ]
The list of included metadata entries that are common to all instant (non-timed) effects.
EffectList
ConnectorEffects
[get, ]
List
ConnectorEffectHandlers
[get, ]
The list of connector effect handlers.
EffectList
Effects
[get, ]
IEnumerable
SupportedEffects
[get, ]
IEnumerable
UnsupportedEffects
[get, ]
PackStatus
PackStatus
[get, ]
GameState
GameState
[get, ]
Events
Action<IEnumerable<KeyValuePair<string, object>>>
MetadataChanged
Action
Disposed
Action<string, Dictionary<string, object>, bool>
EventReceived
Handles a generic event.
EventHandler<PackStatus>
PackStateChanged
EventHandler<GameState>
GameStateChanged
