ppforge/packet/fieldvalue.go

19 lines
370 B
Go

package packet
import "gitea.mmo.to/ProtocolPacketForger/ppf/protocol"
// implements protocol.ProtocolFieldReferencer
type FieldValue struct {
fieldReference *protocol.Field
Value string
}
func (fv *FieldValue) GetProtocolField() *protocol.Field {
return fv.fieldReference
}
func (fv *FieldValue) SetProtocolField(pf *protocol.Field) {
fv.fieldReference = pf
}