Files
sbox-public/engine/Sandbox.Engine/Platform/Stream/StreamRaidMessage.cs
Garry Newman 62feec4b64 Twitch Api (#5016)
Engine: reworks Twitch IRC parsing/client + Streamer event surface (viewers roster, chat/sub/gift/raid messages) and removes older/broken Twitch API features.

Menu/Editor: adds service linking/stream-connect UI (new Services modal; pause/game modal + editor title button) gated by a project setting.

Services/utilities: introduces helper APIs for linking/listing services; adds unit tests for the IRC parser and subscription tier parsing.
2026-06-06 21:46:13 +01:00

33 lines
860 B
C#

namespace Sandbox;
public static partial class Streamer
{
/// <summary>
/// Another channel raided yours, sending their viewers over. The raider is the incoming broadcaster
/// - they aren't a chatter in your channel, so they're identified by name rather than a
/// <see cref="Viewer"/>.
/// </summary>
public struct RaidMessage
{
/// <summary>
/// The raiding channel's login name.
/// </summary>
public string RaiderUsername { get; internal set; }
/// <summary>
/// The raiding channel's display name.
/// </summary>
public string RaiderDisplayName { get; internal set; }
/// <summary>
/// How many viewers were brought over by the raid.
/// </summary>
public int ViewerCount { get; internal set; }
/// <summary>
/// When we received the event.
/// </summary>
public DateTimeOffset Time { get; internal set; }
}
}