vsn

package
v0.0.0-...-382259f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package vsn provides utilities for handling protocol versions, as well as Gophercraft software versions.

Index

Constants

View Source
const NewAuthSystem = V8_3_0
View Source
const NewCryptSystem = V8_3_0

Variables

View Source
var (
	CoreVersion = "0.4"

	ErrInvalidPath = fmt.Errorf("vsn: invalid game path")
)

Functions

func PrintBanner

func PrintBanner()

Types

type Build

type Build uint32
const (
	Alpha   Build = 3368
	V1_12_1 Build = 5875
	V2_4_3  Build = 8606
	V3_3_5a Build = 12340
	V8_3_0  Build = 33369
)

func DetectGame

func DetectGame(folder string) (Build, error)

func (Build) AddedIn

func (hasFeature Build) AddedIn(update Build) bool

func (Build) BuildInfo

func (b Build) BuildInfo() *BuildInfo

func (Build) ClientVersion

func (b Build) ClientVersion() *realmlist.ClientVersion

func (Build) RemovedIn

func (hasFeature Build) RemovedIn(update Build) bool

func (Build) String

func (b Build) String() string

func (Build) VersionData

func (b Build) VersionData() []byte

(legacy auth protocol) Returns a 3-byte field describing the version data. For instance, version 3.3.5 would return []byte{ 3, 3, 5 }

type BuildInfo

type BuildInfo struct {
	MajorVersion    uint32
	MinorVersion    uint32
	BugfixVersion   uint32
	HotfixVersion   string
	WinAuthSeed     []byte
	Win64AuthSeed   []byte
	Mac64AuthSeed   []byte
	WinChecksumSeed []byte
	MacChecksumSeed []byte
}

type Selector

type Selector string

func (Selector) Match

func (sl Selector) Match(b Build) bool

type VolumeType

type VolumeType uint8
const (
	NotAVolume VolumeType = iota
	MPQ
	NGDP
)

func DetectVolumeLocation

func DetectVolumeLocation(folder string) (VolumeType, string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL