func (h *Header) Type() int64 {
	return h.Int("type")
}
Type returns the type.
package rep
import (
	"fmt"
	"time"
	"github.com/icza/s2prot"
)
type Header struct {
	s2prot.Struct
	version string  
}
func (h *Header) BaseBuild() int64 {
	return h.Int("version", "baseBuild")
}
func (h *Header) VersionString() string {
	if h.version == "" {
		v := h.Version()
		h.version = fmt.Sprintf("%d.%d.%d.%d", v.Major(), v.Minor(), v.Revision(), v.Build())
	}
	return h.version
}
func (h *Header) Loops() int64 {
	return h.Int("elapsedGameLoops")
}
func (h *Header) Duration() time.Duration {
	return time.Duration(h.Loops() * 62500000)
}
func (h *Header) Signature() string {
	return h.Stringv("signature")
}
func (h *Header) UseScaledTime() bool {
	return h.Bool("useScaledTime")
}