diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-06-08 18:03:05 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-06-08 18:03:05 +0200 |
commit | 9b71132b974c8f320ce2ee78514ead7d3b366278 (patch) | |
tree | 6178321c33adccdd5ca361a7af2e889b7ae87332 /attractionkind_string.go | |
parent | 6ba80361f9f462870438ecd22f59f8333c8929a7 (diff) |
add support for new particle spawner packet formats
Diffstat (limited to 'attractionkind_string.go')
-rw-r--r-- | attractionkind_string.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/attractionkind_string.go b/attractionkind_string.go new file mode 100644 index 0000000..3fc27a2 --- /dev/null +++ b/attractionkind_string.go @@ -0,0 +1,26 @@ +// Code generated by "stringer -linecomment -type AttractionKind"; 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[NoAttraction-0] + _ = x[PointAttraction-1] + _ = x[LineAttraction-2] + _ = x[PlaneAttraction-3] +} + +const _AttractionKind_name = "NonePointLinePlane" + +var _AttractionKind_index = [...]uint8{0, 4, 9, 13, 18} + +func (i AttractionKind) String() string { + if i >= AttractionKind(len(_AttractionKind_index)-1) { + return "AttractionKind(" + strconv.FormatInt(int64(i), 10) + ")" + } + return _AttractionKind_name[_AttractionKind_index[i]:_AttractionKind_index[i+1]] +} |