29 lines
991 B
C#
29 lines
991 B
C#
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<cmd_player_chgshape>((byte[])Msg.dwParam1);
|
|
//ASSERT(pCmd && pCmd->idPlayer == m_PlayerInfo.cid);
|
|
TransformShape(pCmd.shape);
|
|
}
|
|
|
|
/// <summary>Origin: notify server of force-attack (PVP) state so it accepts/rejects attacks on players. Call when duel starts (true) or ends (false).</summary>
|
|
private void NotifyServerForceAttack(bool bForceAttack)
|
|
{
|
|
byte refuseBless = EC_Utility.glb_BuildRefuseBLSMask();
|
|
UnityGameSession.c2s_SendCmdNotifyForceAttack(glb_BuildPVPMask(bForceAttack), refuseBless);
|
|
}
|
|
|
|
|
|
}
|
|
}
|