diff --git a/Assets/Scripts/CECHostPlayer.Chat.cs b/Assets/Scripts/CECHostPlayer.Chat.cs new file mode 100644 index 0000000000..cf1d0ec9d2 --- /dev/null +++ b/Assets/Scripts/CECHostPlayer.Chat.cs @@ -0,0 +1,32 @@ +using BrewMonster.Network; + +namespace BrewMonster +{ + public partial class CECHostPlayer + { + public bool IsOmitBlocking(int roleid) + { + CECFactionMan pFacMan = EC_Game.GetFactionMan(); + if(pFacMan != null && pFacMan.GetMember(roleid) != null) + { + return true; + } + + CECTeam pTeam = GetTeam(); + if(pTeam != null && pTeam.GetMemberByID(roleid) != null) + { + return true; + } + + CECFriendMan pFriMan = GetFriendMan(); + if(pFriMan != null && pFriMan.GetFriendByID(roleid) != null) + { + return true; + } + + return false; + } + + CECFriendMan GetFriendMan() { return _pFriendMan; } + } +} \ No newline at end of file diff --git a/Assets/Scripts/CECHostPlayer.Chat.cs.meta b/Assets/Scripts/CECHostPlayer.Chat.cs.meta new file mode 100644 index 0000000000..143db95ef3 --- /dev/null +++ b/Assets/Scripts/CECHostPlayer.Chat.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 6a2d99b93adb4f99b145d5ddd3b86951 +timeCreated: 1772095623 \ No newline at end of file