Skip to content

Commit

Permalink
Merge pull request #10 from ethanmoffat/protocol-update
Browse files Browse the repository at this point in the history
Update eo-protocol to latest
  • Loading branch information
ethanmoffat authored Nov 7, 2023
2 parents 1659fe3 + b8f62df commit ca96322
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eo-protocol
18 changes: 16 additions & 2 deletions pkg/eolib/protocol/net/client/packets_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,8 @@ func (s *BankOpenClientPacket) Deserialize(reader *data.EoReader) (err error) {

// BankAddClientPacket :: Depositing gold.
type BankAddClientPacket struct {
Amount int
Amount int
SessionId int
}

func (s BankAddClientPacket) Family() net.PacketFamily {
Expand All @@ -2012,6 +2013,10 @@ func (s *BankAddClientPacket) Serialize(writer *data.EoWriter) (err error) {
if err = writer.AddInt(s.Amount); err != nil {
return
}
// SessionId : field : three
if err = writer.AddThree(s.SessionId); err != nil {
return
}
return
}

Expand All @@ -2021,13 +2026,16 @@ func (s *BankAddClientPacket) Deserialize(reader *data.EoReader) (err error) {

// Amount : field : int
s.Amount = reader.GetInt()
// SessionId : field : three
s.SessionId = reader.GetThree()

return
}

// BankTakeClientPacket :: Withdrawing gold.
type BankTakeClientPacket struct {
Amount int
Amount int
SessionId int
}

func (s BankTakeClientPacket) Family() net.PacketFamily {
Expand All @@ -2046,6 +2054,10 @@ func (s *BankTakeClientPacket) Serialize(writer *data.EoWriter) (err error) {
if err = writer.AddInt(s.Amount); err != nil {
return
}
// SessionId : field : three
if err = writer.AddThree(s.SessionId); err != nil {
return
}
return
}

Expand All @@ -2055,6 +2067,8 @@ func (s *BankTakeClientPacket) Deserialize(reader *data.EoReader) (err error) {

// Amount : field : int
s.Amount = reader.GetInt()
// SessionId : field : three
s.SessionId = reader.GetThree()

return
}
Expand Down

0 comments on commit ca96322

Please sign in to comment.