]> git.lizzy.rs Git - mt.git/blob - mt.go
Add high-level protocol (de)serialization
[mt.git] / mt.go
1 // Package mt implements the high-level Minetest protocol.
2 // This version is compatible with
3 // https://github.com/ClamityAnarchy/minetest/commit/66adeade9d5c45a5499b5ad1ad4bd91dae82482a.
4 package mt
5
6 type Node struct {
7         Param0         Content
8         Param1, Param2 uint8
9 }
10
11 type Content uint16
12
13 const (
14         Unknown Content = 125
15         Air     Content = 126
16         Ignore  Content = 127
17 )
18
19 type Group struct {
20         Name   string
21         Rating int16
22 }
23
24 type Field struct {
25         Name string
26
27         //mt:len32
28         Value string
29 }