2023-01-03 13:34:32 +01:00
|
|
|
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
|
|
|
|
}
|