mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
Expose vote methods for other mods
This commit is contained in:
1 parent
d2f6ba9718
commit
027d4763f3
1 file changed
+2
-2
@@ -121,7 +121,7 @@ public static class VotingUtils
|
||||
CustomCastJudgeVote(srcPlayerId, suspectPlayerId, overruleNonce);
|
||||
}
|
||||
|
||||
private static void CustomCastJudgeVote(PlayerId judgePlayerId, PlayerId targetPlayerId, ushort overruleNonce)
|
||||
public static void CustomCastJudgeVote(PlayerId judgePlayerId, PlayerId targetPlayerId, ushort overruleNonce)
|
||||
{
|
||||
var plr = GameData.Instance.GetPlayerById(judgePlayerId.Value);
|
||||
if (!plr) return;
|
||||
@@ -181,7 +181,7 @@ public static class VotingUtils
|
||||
CustomCastVote(srcPlayerId, suspectPlayerId);
|
||||
}
|
||||
|
||||
private static void CustomCastVote(byte srcPlayerId, byte suspectPlayerId)
|
||||
public static void CustomCastVote(byte srcPlayerId, byte suspectPlayerId)
|
||||
{
|
||||
var plr = GameData.Instance.GetPlayerById(srcPlayerId);
|
||||
if (!plr) return;
|
||||
|
||||
Reference in new issue
Block a user