summaryrefslogtreecommitdiff
path: root/danmaku/dmmsg/messages.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-07 12:45:46 +0800
committerKeuin <[email protected]>2022-09-07 12:47:25 +0800
commit00595609af53514ffd39d9aeab0d33e6d84cbdb5 (patch)
treeacb89f406dade1662090facd740a7ccc5d90433c /danmaku/dmmsg/messages.go
parentc78edaa0ffa28bb360663f172e98540b7978e9b2 (diff)
More comprehensive danmaku message handling.
Diffstat (limited to 'danmaku/dmmsg/messages.go')
-rw-r--r--danmaku/dmmsg/messages.go7
1 files changed, 7 insertions, 0 deletions
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"`
+}