Code/SboxSuperuser/Api/IVoteEvent.cs

An interface declaring a scene event for vote changes. Implementers receive a VoteSnapshot whenever the current vote state changes, for games that draw their own vote panel.

using Sandbox;

namespace SboxSuperuser;

/// <summary>Raised on every player's machine whenever the current vote changes, for games drawing their own vote panel.</summary>
public interface IVoteEvent : ISceneEvent<IVoteEvent>
{
	/// <summary>The vote as it is now; Finished is true once it has been decided.</summary>
	void OnVoteChanged( VoteSnapshot vote );
}