From 00595609af53514ffd39d9aeab0d33e6d84cbdb5 Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 7 Sep 2022 12:45:46 +0800 Subject: More comprehensive danmaku message handling. --- danmaku/dmmsg/messages.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 danmaku/dmmsg/messages.go (limited to 'danmaku/dmmsg/messages.go') diff --git a/danmaku/dmmsg/messages.go b/danmaku/dmmsg/messages.go new file mode 100644 index 0000000..d1480b7 --- /dev/null +++ b/danmaku/dmmsg/messages.go @@ -0,0 +1,7 @@ +package dmmsg + +type BaseRawMessage[I any, D any] struct { + Cmd string `json:"cmd"` + Info I `json:"info"` + Data D `json:"data"` +} -- cgit v1.2.3