mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
36 lines
999 B
C#
36 lines
999 B
C#
|
|
namespace BetterAmongUs;
|
|
|
|
static class ExtendedPlayerInfo
|
|
{
|
|
private static Dictionary<PlayerControl, bool> IsBetterUser = new Dictionary<PlayerControl, bool>();
|
|
private static Dictionary<PlayerControl, bool> IsBetterHost = new Dictionary<PlayerControl, bool>();
|
|
|
|
public static bool GetIsBetterUser(this PlayerControl player)
|
|
{
|
|
if (IsBetterUser.ContainsKey(player))
|
|
return IsBetterUser[player];
|
|
else
|
|
return false;
|
|
}
|
|
|
|
public static bool GetIsBetterHost(this PlayerControl player)
|
|
{
|
|
if (player.IsHost() && IsBetterHost.ContainsKey(player))
|
|
return IsBetterHost[player];
|
|
else
|
|
return false;
|
|
}
|
|
|
|
public static void SetIsBetterUser(this PlayerControl player, bool value)
|
|
{
|
|
IsBetterUser[player] = value;
|
|
}
|
|
|
|
public static void SetIsBetterHost(this PlayerControl player, bool value)
|
|
{
|
|
IsBetterHost[player] = value;
|
|
}
|
|
}
|
|
|