refactor package
This commit is contained in:
32
pkg/protocol/packet/game/client/merchant_offers.go
Normal file
32
pkg/protocol/packet/game/client/merchant_offers.go
Normal file
@ -0,0 +1,32 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"git.konjactw.dev/patyhank/minego/codec/slot"
|
||||
slot2 "git.konjactw.dev/patyhank/minego/pkg/protocol/slot"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type TradeOption struct {
|
||||
Input slot.TradeSlot
|
||||
Output slot2.Slot
|
||||
HasSecondInput bool
|
||||
//opt:optional:HasSecondInput
|
||||
SecondInput slot.TradeSlot
|
||||
TradeDisabled bool
|
||||
TradeUses int32
|
||||
MaxTradeUses int32
|
||||
Experience int32
|
||||
SpecialPrice int32
|
||||
PriceMultiplier float32
|
||||
Demand int32
|
||||
}
|
||||
|
||||
//codec:gen
|
||||
type MerchantOffers struct {
|
||||
WindowID int32 `mc:"VarInt"`
|
||||
Offers []TradeOption
|
||||
Level int32 `mc:"VarInt"`
|
||||
Experience int32 `mc:"VarInt"`
|
||||
IsRegular bool
|
||||
CanRestock bool
|
||||
}
|
Reference in New Issue
Block a user