summaryrefslogtreecommitdiff
path: root/soundsrctype_string.go
blob: ccf307da1481aafc6f54720af3217a91c3aee5c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by "stringer -linecomment -type SoundSrcType"; DO NOT EDIT.

package mt

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[NoSrc-0]
	_ = x[PosSrc-1]
	_ = x[AOSrc-2]
}

const _SoundSrcType_name = "nowhereposao"

var _SoundSrcType_index = [...]uint8{0, 7, 10, 12}

func (i SoundSrcType) String() string {
	if i >= SoundSrcType(len(_SoundSrcType_index)-1) {
		return "SoundSrcType(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _SoundSrcType_name[_SoundSrcType_index[i]:_SoundSrcType_index[i+1]]
}