func (o *Hit) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}

	so := sparse.(*SparseHit)
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.TargetID != nil {
		o.TargetID = *so.TargetID
	}
	if so.TargetIdentity != nil {
		o.TargetIdentity = *so.TargetIdentity
	}
	if so.Value != nil {
		o.Value = *so.Value
	}
}
// Patch apply the non nil value of a *SparseHit to the object.
Patch apply the non nil value of a *SparseHit to the object.
// Patch apply the non nil value of a * SparseHit to the object .
func (o *Hit) Patch(sparse elemental.SparseIdentifiable) {
	if !sparse.Identity().IsEqual(o.Identity()) {
		panic("cannot patch from a parse with different identity")
	}
	so := sparse.(*SparseHit)
	if so.Name != nil {
		o.Name = *so.Name
	}
	if so.TargetID != nil {
		o.TargetID = *so.TargetID
	}
	if so.TargetIdentity != nil {
		o.TargetIdentity = *so.TargetIdentity
	}
	if so.Value != nil {
		o.Value = *so.Value
	}
}
func ( o * Hit ) Patch ( sparse elemental . SparseIdentifiable ) { if ! sparse . Identity ( ) . IsEqual ( o . Identity ( ) ) { panic ( " " ) } so := sparse . ( * SparseHit ) if so . Name != nil { o . Name = * so . Name } if so . TargetID != nil { o . TargetID = * so . TargetID } if so . TargetIdentity != nil { o . TargetIdentity = * so . TargetIdentity } if so . Value != nil { o . Value = * so . Value } }
Patch apply the non nil value of a *SparseHit to the object.
Patch apply the non nil value of a * SparseHit to the object .