Skip to content

Commit

Permalink
Merge pull request Philipp15b#120. Thanks @Tommy-42!
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp15b committed Dec 6, 2021
2 parents b1bb47e + a49f2cc commit bec6b03
Show file tree
Hide file tree
Showing 84 changed files with 158,647 additions and 89,892 deletions.
10 changes: 5 additions & 5 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"sync/atomic"
"time"

"github.com/Philipp15b/go-steam/v2/protocol"
"github.com/Philipp15b/go-steam/v2/protocol/protobuf"
"github.com/Philipp15b/go-steam/v2/protocol/steamlang"
"github.com/Philipp15b/go-steam/v2/steamid"
"github.com/golang/protobuf/proto"
"github.com/Philipp15b/go-steam/v3/protocol"
"github.com/Philipp15b/go-steam/v3/protocol/protobuf"
"github.com/Philipp15b/go-steam/v3/protocol/steamlang"
"github.com/Philipp15b/go-steam/v3/steamid"
"google.golang.org/protobuf/proto"
)

type Auth struct {
Expand Down
4 changes: 2 additions & 2 deletions auth_events.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package steam

import (
"github.com/Philipp15b/go-steam/v2/protocol/steamlang"
"github.com/Philipp15b/go-steam/v2/steamid"
"github.com/Philipp15b/go-steam/v3/protocol/steamlang"
"github.com/Philipp15b/go-steam/v3/steamid"
)

type LoggedOnEvent struct {
Expand Down
19 changes: 13 additions & 6 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
"sync/atomic"
"time"

"github.com/Philipp15b/go-steam/v2/cryptoutil"
"github.com/Philipp15b/go-steam/v2/netutil"
"github.com/Philipp15b/go-steam/v2/protocol"
"github.com/Philipp15b/go-steam/v2/protocol/protobuf"
"github.com/Philipp15b/go-steam/v2/protocol/steamlang"
"github.com/Philipp15b/go-steam/v2/steamid"
"github.com/Philipp15b/go-steam/v3/cryptoutil"
"github.com/Philipp15b/go-steam/v3/netutil"
"github.com/Philipp15b/go-steam/v3/protocol"
"github.com/Philipp15b/go-steam/v3/protocol/protobuf"
"github.com/Philipp15b/go-steam/v3/protocol/steamlang"
"github.com/Philipp15b/go-steam/v3/steamid"
)

// Represents a client to the Steam network.
Expand Down Expand Up @@ -65,18 +65,25 @@ func NewClient() *Client {
events: make(chan interface{}, 3),
writeBuf: new(bytes.Buffer),
}

client.Auth = &Auth{client: client}
client.RegisterPacketHandler(client.Auth)

client.Social = newSocial(client)
client.RegisterPacketHandler(client.Social)

client.Web = &Web{client: client}
client.RegisterPacketHandler(client.Web)

client.Notifications = newNotifications(client)
client.RegisterPacketHandler(client.Notifications)

client.Trading = &Trading{client: client}
client.RegisterPacketHandler(client.Trading)

client.GC = newGC(client)
client.RegisterPacketHandler(client.GC)

return client
}

Expand Down
2 changes: 1 addition & 1 deletion client_events.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package steam

import (
"github.com/Philipp15b/go-steam/v2/netutil"
"github.com/Philipp15b/go-steam/v3/netutil"
)

// When this event is emitted by the Client, the connection is automatically closed.
Expand Down
4 changes: 2 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net"
"sync"

"github.com/Philipp15b/go-steam/v2/cryptoutil"
"github.com/Philipp15b/go-steam/v2/protocol"
"github.com/Philipp15b/go-steam/v3/cryptoutil"
"github.com/Philipp15b/go-steam/v3/protocol"
)

type connection interface {
Expand Down
Loading

0 comments on commit bec6b03

Please sign in to comment.