added detailed parsing of player hurt events
This commit is contained in:
29
ent/schema/weaponstats.go
Normal file
29
ent/schema/weaponstats.go
Normal 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(),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user