mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 08:18:20 -04:00
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.
33 lines
860 B
C#
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; }
|
|
}
|
|
}
|