diff options
Diffstat (limited to 'vendor/github.com/Philipp15b/go-steam/protocol/steamlang/steamlang.go')
-rw-r--r-- | vendor/github.com/Philipp15b/go-steam/protocol/steamlang/steamlang.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/Philipp15b/go-steam/protocol/steamlang/steamlang.go b/vendor/github.com/Philipp15b/go-steam/protocol/steamlang/steamlang.go new file mode 100644 index 00000000..795aa468 --- /dev/null +++ b/vendor/github.com/Philipp15b/go-steam/protocol/steamlang/steamlang.go @@ -0,0 +1,17 @@ +/* +Contains code generated from SteamKit's SteamLanguage data. +*/ +package steamlang + +const ( + ProtoMask uint32 = 0x80000000 + EMsgMask = ^ProtoMask +) + +func NewEMsg(e uint32) EMsg { + return EMsg(e & EMsgMask) +} + +func IsProto(e uint32) bool { + return e&ProtoMask > 0 +} |