Create new class CECHostPlayer for chat

This commit is contained in:
MinhHai
2026-02-26 15:55:12 +07:00
parent 2b88c03fcd
commit 41e227bcf4
2 changed files with 35 additions and 0 deletions
+32
View File
@@ -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; }
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 6a2d99b93adb4f99b145d5ddd3b86951
timeCreated: 1772095623