ppforge/packet/fieldvalue.go

19 lines
370 B
Go
Raw Normal View History

package packet
2023-04-11 16:05:24 +02:00
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
}