]> git.lizzy.rs Git - mt.git/blobdiff - nodedef.go
Run mkserialize.sh once again
[mt.git] / nodedef.go
index 91b82351a13fffbc7341011127a8b87eff84a395..8664caf8e92f601ff509808a09ec9568162035b3 100644 (file)
@@ -158,3 +158,27 @@ type NodeDef struct {
 
        //mt:end
 }
+
+func BuiltinNodeDefs(n int) map[Content]NodeDef {
+       defs := make(map[Content]NodeDef, 3+n)
+       defs[Unknown] = NodeDef{
+               Name: "unknown",
+       }
+       defs[Air] = NodeDef{
+               Name:        "air",
+               DrawType:    DrawNothing,
+               P1Type:      P1Light,
+               Translucent: true,
+               Transparent: true,
+               Replaceable: true,
+               Floodable:   true,
+               GndContent:  true,
+       }
+       defs[Ignore] = NodeDef{
+               Name:        "ignore",
+               DrawType:    DrawNothing,
+               Replaceable: true,
+               GndContent:  true,
+       }
+       return defs
+}