]> git.lizzy.rs Git - mtmap.git/blobdiff - types.go
Merge pull request #2 from ev2-1/master
[mtmap.git] / types.go
index bd5135010409baeccf7e8988f51ea0898d3d658c..abb02e2cb8bcaaf1b9654c588f8cc3a40bce7c19 100644 (file)
--- a/types.go
+++ b/types.go
@@ -1,7 +1,6 @@
 package mtmap
 
 import (
-       "fmt"
        "github.com/anon55555/mt"
 )
 
@@ -35,23 +34,3 @@ type StaticObj struct {
        Pos  [3]float32
        Data string
 }
-
-type ErrInvalidNodeName struct {
-       Name string
-}
-
-func (e ErrInvalidNodeName) Error() string {
-       return fmt.Sprintf("invalid node \"%v\"", e.Name)
-}
-
-type ErrInvalidNodeId struct {
-       Id mt.Content
-}
-
-func (e ErrInvalidNodeId) Error() string {
-       return fmt.Sprintf("invalid node %v", e.Id)
-}
-
-func isSpecial(id mt.Content) bool {
-       return id >= 125 && id <= 127
-}