/// <summary> /// 通知移动 /// </summary> /// <param name="characterid">角色全局ID</param> /// <param name="position">目标点</param> /// <param name="accounts">所有账号</param> public static void NotifyMove(uint characterid, Vector3 position, Dictionary <string, Account> accounts) { NotifyCharacterMove notify = new NotifyCharacterMove(); notify.characterid = characterid; notify.position = ProtoHelper.LV2PV(position); MsgSender.BroadCast(accounts, MsgID.NotifyCharacterMove, notify); }
/// <summary> /// 通知攻击事件 /// </summary> /// <param name="globalRoleID">攻击者的全局ID</param> /// <param name="skillID">技能ID</param> /// <param name="targetid">目标的全局ID</param> /// <param name="position">坐标</param> /// <param name="accounts">所有账号</param> public static void NotifyAttack(uint characterid, uint skillID, uint targetid, Vector3 position, Dictionary <string, Account> accounts) { NotifyCharacterAttack notify = new NotifyCharacterAttack(); notify.characterid = characterid; notify.skillid = skillID; notify.pos = ProtoHelper.LV2PV(position); notify.targetid = targetid; MsgSender.BroadCast(accounts, MsgID.NotifyCharacterAttack, notify); }