CrowdControl
Inherits MonoBehaviour
Public Member Functions
void
Clears all saved tokens from a previous session.
bool
Returns true if the timed effect is currently running.
string
Gets the JSON Manifest of your effect pack.
void
Connects to the Crowd Control server.
void
Disconnects from the Crowd Control server.
bool
Returns true if the effect is a bid war.
bool
Returns true if the effect is a timed effect.
bool
Returns true if the effect is a parameter effect.
bool
Check if the effect is registered already or not.
void
Register a Generic (Not Implemented Yet).
void
Attempt to login with Twitch.
void
Attempt to login with Youtube.
void
Attempt to login with Discord.
void
Begins the game session.
void
Ends the game session.
void
Test a generic being sent to the server. (Not Implemented Yet)
void
Test a generic locally. (Not Implemented Yet)
void
Test an effect locally. Its events won't be sent to the server.
void
Test an effect remotely.
void
Forcefully terminates all pending and running effects.
bool
Returns true if at least one timed effect is currently running.
bool
Returns true if timed effect is running.
bool
Stops a timer effect.
bool
Returns true if timed effect is paused.
Public Static Functions
void
Resume a timed effect.
void
Pause a timed effect.
Private Functions
void
Cancels a received effect
Internal Functions
void
Registers this effect during runtime.
Public Attributes
bool
isConnected
Are you connected or not
Private Attributes
string
_gameSessionID
ID of the current game session.
Properties
static
CrowdControl
instance
[get, set]
Singleton instance. Will be null if the behaviour isn't in the scene.
static
StreamUser
testUser
[get, set]
Reference to the test user object. Used to dispatch local effects.
static
StreamUser
crowdUser
[get, set]
Reference to the crowd user object. Used to dispatch pooled effects.
static
StreamUser
anonymousUser
[get, set]
Reference to the crowd user object. Used to dispatch effects with an unknown contributor.
static
StreamUser
basicUser
[get, set]
Reference to the streamer user object.
static
string
GameID
[get, ]
Unique ID Identifier for this game.
static
bool
StartSessionAutomatically
[get, set]
Start the game session as soon as your login is verified.
bool
isConnecting
[get, set]
Whether the connection to the server is currently initializing.
bool
disconnectedFromError
[get, set]
The latest disconnect occured due to an error.
static
void
ResetEffect
[, ]
Reset a timed effect.
Events
Action
OnConnecting
Invoked when attempting a connection to the Crowd Control server.
Action
(Exception)
OnConnectionError
Invoked when the connection to the Crowd Control server has failed.
Action
OnConnected
Invoked when successfully connected to the Crowd Control server.
Action
OnDisconnected
Invoked when disconnected from the Crowd Control server.
Action
(CCEffectInstance)
OnEffectQueue
Invoked when an effect is scheduled for execution.
Action
(string, EffectResult)
OnEffectDequeue
Invoked when an effect leaves the scheduling queue.
Action
(string, float, Sprite)
OnDisplayMessage
Invoked when an important message needs to be displayed.
Action
OnLoginFailure
Invoked when you fail to login.
Action
(CCEffectInstance)
OnEffectTrigger
Invoked when an CCEffectBase is successfully triggered.
Action
(CCEffectInstanceTimed)
OnEffectStart
Invoked when a CCEffectTimed is successfully started.
Action
(CCEffectInstanceTimed)
OnEffectStop
Invoked when a CCEffectTimed is successfully stopped.
Action
(CCEffectInstanceTimed)
OnEffectPause
Invoked on effect instances when the associated CCEffectTimed is disabled.
Action
(CCEffectInstanceTimed)
OnEffectResume
Invoked on effect instances when the associated CCEffectTimed is enabled.
Action
(CCEffectInstanceTimed)
OnEffectReset
Invoked on effect instances when the associated CCEffectTimed is reset.
Action
OnLoggedOut
Invoked when you log out.
Action
OnLoggedIn
Invoked when you log in.
Action
OnSubscribed
Invoked when you subscribe to the server.
Action
OnSubscribeFail
Invoked when you fail to subscribe to the server.
Action
OnGameSessionStart
Invoked when the session starts.
Action
OnGameSessionStop
Invoked when the session stops.
Action
(CCEffectBase)
OnEffectRequest
Invoked when an effect is requested.