added detailed parsing of player hurt events

This commit is contained in:
2021-10-11 21:37:10 +02:00
parent 3ff65bc5d7
commit 4b7851da83
28 changed files with 14660 additions and 978 deletions

29
ent/schema/weaponstats.go Normal file
View File

@@ -0,0 +1,29 @@
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/edge"
"entgo.io/ent/schema/field"
)
// WeaponStats holds the schema definition for the WeaponStats entity.
type WeaponStats struct {
ent.Schema
}
// Fields of the WeaponStats.
func (WeaponStats) Fields() []ent.Field {
return []ent.Field{
field.Uint64("victim"),
field.Uint("dmg"),
field.Int("eq_type"),
field.Int("hit_group"),
}
}
// Edges of the WeaponStats.
func (WeaponStats) Edges() []ent.Edge {
return []ent.Edge{
edge.From("stat", Stats.Type).Ref("weapon_stats").Unique(),
}
}