diff options
author | anon5 <anon5clam@protonmail.com> | 2021-06-21 18:47:26 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-06-21 18:47:26 +0000 |
commit | 425da65ed46061303604610bb539d6495b2b1f3f (patch) | |
tree | 10ae3e665132c369ce0207676321cef870679923 /mt.go | |
parent | 9f239d341ef46b656dda759020da87bdd0606344 (diff) | |
download | mt-425da65ed46061303604610bb539d6495b2b1f3f.tar.xz |
Add high-level protocol (de)serialization
Diffstat (limited to 'mt.go')
-rw-r--r-- | mt.go | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -1,5 +1,29 @@ +// Package mt implements the high-level Minetest protocol. +// This version is compatible with +// https://github.com/ClamityAnarchy/minetest/commit/66adeade9d5c45a5499b5ad1ad4bd91dae82482a. package mt +type Node struct { + Param0 Content + Param1, Param2 uint8 +} + +type Content uint16 + +const ( + Unknown Content = 125 + Air Content = 126 + Ignore Content = 127 +) + +type Group struct { + Name string + Rating int16 +} + type Field struct { - Name, Value string + Name string + + //mt:len32 + Value string } |