added spray patterns

This commit is contained in:
2021-10-31 08:40:02 +01:00
parent 268793f0e5
commit 978232dd0a
66 changed files with 16805 additions and 11903 deletions

29
ent/schema/weapon.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"
)
// Weapon holds the schema definition for the Weapon entity.
type Weapon struct {
ent.Schema
}
// Fields of the Weapon.
func (Weapon) Fields() []ent.Field {
return []ent.Field{
field.Uint64("victim"),
field.Uint("dmg"),
field.Int("eq_type"),
field.Int("hit_group"),
}
}
// Edges of the Weapon.
func (Weapon) Edges() []ent.Edge {
return []ent.Edge{
edge.From("stat", MatchPlayer.Type).Ref("weapon_stats").Unique(),
}
}