mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-28 19:44:00 +00:00
28 lines
818 B
C#
28 lines
818 B
C#
namespace BetterAmongUs;
|
|
|
|
public class ExtendedPlayerInfo
|
|
{
|
|
public Dictionary<byte, string> LastNameSetFor { get; set; } = [];
|
|
public bool IsBetterUser { get; set; } = false;
|
|
public bool IsBetterHost { get; set; } = false;
|
|
public bool IsTOHEHost { get; set; } = false;
|
|
public bool HasNoisemakerNotify { get; set; } = false;
|
|
public int TimesCalledMeeting { get; set; } = 0;
|
|
|
|
}
|
|
|
|
public static class PlayerControlExtensions
|
|
{
|
|
private static readonly Dictionary<PlayerControl, ExtendedPlayerInfo> playerInfo = [];
|
|
|
|
public static ExtendedPlayerInfo BetterData(this PlayerControl player)
|
|
{
|
|
if (!playerInfo.ContainsKey(player))
|
|
{
|
|
playerInfo[player] = new ExtendedPlayerInfo();
|
|
}
|
|
|
|
return playerInfo[player];
|
|
}
|
|
}
|