跳转至

BossEventPacket

文档版本:r/21_u4
协议版本:748

BossEventPacket数据包,数字ID74。该数据包用于protocol.packet.bosseventpacket.description

结构



BossEventPacket




0

BossEventPacket




1

Target Actor ID



0->1






3

Event Type



0->3






5



Dependency on 'Event Type'



0->5






2

ActorUniqueID



1->2






4

unsigned varint



3->4






6

if (0)



5->6






17

if (1)



5->17






20

if (2)



5->20






22

if (3)



5->22






25

if (4)



5->25






28

if (5)



5->28






31

if (6)



5->31






38

if (7)



5->38






43

if (8)



5->43






7

Name



6->7






9

Health Percent



6->9






11

Darken Screen



6->11






13

Color



6->13






15

Overlay



6->15






8

string



7->8






10

float



9->10






12

unsigned short



11->12






14

unsigned varint



13->14






16

unsigned varint



15->16






18

Player ID



17->18






19

ActorUniqueID



18->19






21

[No Data]



20->21






23

Player ID



22->23






24

ActorUniqueID



23->24






26

Health Percent



25->26






27

float



26->27






29

Name



28->29






30

string



29->30






32

Darken Screen



31->32






34

Color



31->34






36

Overlay



31->36






33

unsigned short



32->33






35

unsigned varint



34->35






37

unsigned varint



36->37






39

Color



38->39






41

Overlay



38->41






40

unsigned varint



39->40






42

unsigned varint



41->42






44

Player ID



43->44






45

ActorUniqueID



44->45




字段

BossEventPacket
[target_actor_id][event_type][dependency_on_event_type]
Target Actor IDActorUniqueID
特殊类型。protocol.packet.bosseventpacket.target_actor_id.description
Event Type:unsigned varint
基本类型枚举。protocol.packet.bosseventpacket.event_type.description枚举值如下:
描述
Add 0 protocol.enum.add
PlayerAdded 1 protocol.enum.playeradded
Remove 2 protocol.enum.remove
PlayerRemoved 3 protocol.enum.playerremoved
Update_Percent 4 protocol.enum.update_percent
Update_Name 5 protocol.enum.update_name
Update_Properties 6 protocol.enum.update_properties
Update_Style 7 protocol.enum.update_style
Query 8 protocol.enum.query

依赖于Event Type

if (0)
[name][health_percent][darken_screen][color][overlay]
Name:string
特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.name.descriptionName of the boss to add
Health Percent:float
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.health_percent.descriptionHealth value of the boss
Darken Screen:unsigned short
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.darken_screen.descriptionA boolean value for whether or not we should darken the screen (has a 0 or 1 value)
Color:unsigned varint
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.color.descriptioncolor for the boss bar, listed in an enumeration
Overlay:unsigned varint
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.overlay.descriptionoverlay for the boss bar, listed in an enumeration
if (1)
[player_id]
Player IDActorUniqueID
特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_1.player_id.description
if (2):[No Data]
无数据
if (3)
[player_id]
Player IDActorUniqueID
特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_3.player_id.description
if (4)
[health_percent]
Health Percent:float
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_4.health_percent.description
if (5)
[name]
Name:string
特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_5.name.description
if (6)
[darken_screen][color][overlay]
Darken Screen:unsigned short
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_6.darken_screen.description
Color:unsigned varint
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_6.color.description
Overlay:unsigned varint
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_6.overlay.description
if (7)
[color][overlay]
Color:unsigned varint
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_7.color.description
Overlay:unsigned varint
基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_7.overlay.description
if (8)
[player_id]
Player IDActorUniqueID
特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_8.player_id.description