summaryrefslogtreecommitdiff
path: root/particlespawnerflags_string.go
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-06-08 18:03:05 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-06-08 18:03:05 +0200
commit9b71132b974c8f320ce2ee78514ead7d3b366278 (patch)
tree6178321c33adccdd5ca361a7af2e889b7ae87332 /particlespawnerflags_string.go
parent6ba80361f9f462870438ecd22f59f8333c8929a7 (diff)
add support for new particle spawner packet formats
Diffstat (limited to 'particlespawnerflags_string.go')
-rw-r--r--particlespawnerflags_string.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/particlespawnerflags_string.go b/particlespawnerflags_string.go
new file mode 100644
index 0000000..55f1d63
--- /dev/null
+++ b/particlespawnerflags_string.go
@@ -0,0 +1,24 @@
+// Code generated by "stringer -linecomment -type ParticleSpawnerFlags"; 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[AttractorKill-1]
+}
+
+const _ParticleSpawnerFlags_name = "Particle dies on contact"
+
+var _ParticleSpawnerFlags_index = [...]uint8{0, 24}
+
+func (i ParticleSpawnerFlags) String() string {
+ i -= 1
+ if i >= ParticleSpawnerFlags(len(_ParticleSpawnerFlags_index)-1) {
+ return "ParticleSpawnerFlags(" + strconv.FormatInt(int64(i+1), 10) + ")"
+ }
+ return _ParticleSpawnerFlags_name[_ParticleSpawnerFlags_index[i]:_ParticleSpawnerFlags_index[i+1]]
+}