using BrewMonster.Network; using CSNetwork; using CSNetwork.GPDataType; using BrewMonster.Scripts; using UnityEngine; using System.Threading.Tasks; using Cysharp.Threading.Tasks; namespace BrewMonster { public partial class CECHostPlayer { public void OnMsgPlayerChgShape(ECMSG Msg) { cmd_player_chgshape pCmd = GPDataTypeHelper.FromBytes((byte[])Msg.dwParam1); //ASSERT(pCmd && pCmd->idPlayer == m_PlayerInfo.cid); TransformShape(pCmd.shape); } /// Origin: notify server of force-attack (PVP) state so it accepts/rejects attacks on players. Call when duel starts (true) or ends (false). private void NotifyServerForceAttack(bool bForceAttack) { byte refuseBless = EC_Utility.glb_BuildRefuseBLSMask(); UnityGameSession.c2s_SendCmdNotifyForceAttack(glb_BuildPVPMask(bForceAttack), refuseBless); } } }