外观
协议模型:N · 2
选择模型查看构造参数和字段,代码块保留完整模型名称。... 表示可省略的字段,省略时使用该类型的零值。
NPCDialogue
继承 Packet。
python
class NPCDialogue(_Packet):
packet_id: ClassVar[int] = 169
packet_name: ClassVar[str] = 'NPCDialogue'
EntityUniqueID: int
ActionType: int
Dialogue: str | StringBytes
SceneName: str | StringBytes
NPCName: str | StringBytes
ActionJSON: str | StringBytes
def __init__(self, /, *,
EntityUniqueID: int = ...,
ActionType: int = ...,
Dialogue: str | StringBytes = ...,
SceneName: str | StringBytes = ...,
NPCName: str | StringBytes = ...,
ActionJSON: str | StringBytes = ...,
) -> None: ...NPCRequest
继承 Packet。
python
class NPCRequest(_Packet):
packet_id: ClassVar[int] = 98
packet_name: ClassVar[str] = 'NPCRequest'
EntityRuntimeID: int
RequestType: int
CommandString: str | StringBytes
ActionType: int
SceneName: str | StringBytes
def __init__(self, /, *,
EntityRuntimeID: int = ...,
RequestType: int = ...,
CommandString: str | StringBytes = ...,
ActionType: int = ...,
SceneName: str | StringBytes = ...,
) -> None: ...