updated deps; regen ent
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package ent
|
||||
|
||||
@@ -44,8 +44,7 @@ type WeaponEdges struct {
|
||||
func (e WeaponEdges) StatOrErr() (*MatchPlayer, error) {
|
||||
if e.loadedTypes[0] {
|
||||
if e.Stat == nil {
|
||||
// The edge stat was loaded in eager-loading,
|
||||
// but was not found.
|
||||
// Edge was loaded but was not found.
|
||||
return nil, &NotFoundError{label: matchplayer.Label}
|
||||
}
|
||||
return e.Stat, nil
|
||||
@@ -134,11 +133,11 @@ func (w *Weapon) Update() *WeaponUpdateOne {
|
||||
// Unwrap unwraps the Weapon entity that was returned from a transaction after it was closed,
|
||||
// so that all future queries will be executed through the driver which created the transaction.
|
||||
func (w *Weapon) Unwrap() *Weapon {
|
||||
tx, ok := w.config.driver.(*txDriver)
|
||||
_tx, ok := w.config.driver.(*txDriver)
|
||||
if !ok {
|
||||
panic("ent: Weapon is not a transactional entity")
|
||||
}
|
||||
w.config.driver = tx.drv
|
||||
w.config.driver = _tx.drv
|
||||
return w
|
||||
}
|
||||
|
||||
@@ -146,14 +145,17 @@ func (w *Weapon) Unwrap() *Weapon {
|
||||
func (w *Weapon) String() string {
|
||||
var builder strings.Builder
|
||||
builder.WriteString("Weapon(")
|
||||
builder.WriteString(fmt.Sprintf("id=%v", w.ID))
|
||||
builder.WriteString(", victim=")
|
||||
builder.WriteString(fmt.Sprintf("id=%v, ", w.ID))
|
||||
builder.WriteString("victim=")
|
||||
builder.WriteString(fmt.Sprintf("%v", w.Victim))
|
||||
builder.WriteString(", dmg=")
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("dmg=")
|
||||
builder.WriteString(fmt.Sprintf("%v", w.Dmg))
|
||||
builder.WriteString(", eq_type=")
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("eq_type=")
|
||||
builder.WriteString(fmt.Sprintf("%v", w.EqType))
|
||||
builder.WriteString(", hit_group=")
|
||||
builder.WriteString(", ")
|
||||
builder.WriteString("hit_group=")
|
||||
builder.WriteString(fmt.Sprintf("%v", w.HitGroup))
|
||||
builder.WriteByte(')')
|
||||
return builder.String()
|
||||
|
Reference in New Issue
Block a user