ppforge/packet/fieldvalue.go

19 lines
372 B
Go
Raw Normal View History

package packet
2023-04-11 16:05:24 +02:00
2023-05-12 09:10:24 +02:00
import "gitea.mmo.to/ppForge/ppforge/protocol"
2023-04-11 16:05:24 +02:00
2023-04-12 15:14:19 +02:00
// FieldValue implements protocol.ProtocolFieldReferencer
2023-04-11 16:05:24 +02:00
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
}