19 lines
372 B
Go
19 lines
372 B
Go
package packet
|
|
|
|
import "gitea.mmo.to/ppForge/ppforge/protocol"
|
|
|
|
// FieldValue 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
|
|
}
|