]> git.lizzy.rs Git - mtmap.git/blob - types.go
Merge pull request #2 from ev2-1/master
[mtmap.git] / types.go
1 package mtmap
2
3 import (
4         "github.com/anon55555/mt"
5 )
6
7 type MapBlk struct {
8         mt.MapBlk
9         Flags            MapBlkFlags
10         LightingComplete uint16
11         StaticObjs       []StaticObj
12         Timestamp        uint32
13 }
14
15 type MapBlkFlags uint8
16
17 const (
18         IsUnderground MapBlkFlags = 1 << iota
19         DayNightDiffers
20         NotGenerated = 1 << 4
21 )
22
23 var (
24         SerializeVer uint8 = 28
25         ContentWidth uint8 = 2
26         ParamsWidth  uint8 = 2
27         NodeMetaVer  uint8 = 2
28         StaticObjVer uint8 = 0
29         NameIdMapVer uint8 = 0
30 )
31
32 type StaticObj struct {
33         Type uint8
34         Pos  [3]float32
35         Data string
36 }