ppforge/packet/fieldvalue.go

21 lines
462 B
Go

package packet
import "gitea.mmo.to/ppForge/ppforge/protocol"
// FieldValue implements protocol.ProtocolFieldReferencer
type FieldValue struct {
fieldReference *protocol.Field
Value string
}
// GetProtocolField returns the protocol field
func (fv *FieldValue) GetProtocolField() *protocol.Field {
return fv.fieldReference
}
// SetProtocolField sets the protocl field
func (fv *FieldValue) SetProtocolField(pf *protocol.Field) {
fv.fieldReference = pf
}