MCPcopy Create free account
hub / github.com/dank/rlapi / SetVersion

Method SetVersion

psynet.go:96–100  ·  view source on GitHub ↗

SetVersion overrides the default game version and feature set.

(gameVersion, featureSet string)

Source from the content-addressed store, hash-verified

94
95// SetVersion overrides the default game version and feature set.
96func (p *PsyNet) SetVersion(gameVersion, featureSet string) {
97 p.gameVersion = gameVersion
98 p.featureSet = featureSet
99 p.buildID = strconv.Itoa(int(decodeBuildID(gameVersion)))
100}
101
102// GetVersion returns the current game version and feature set.
103func (p *PsyNet) GetVersion() (gameVersion, featureSet string) {

Callers

nothing calls this directly

Calls 1

decodeBuildIDFunction · 0.85

Tested by

no test coverage detected