Class: MsgChannelEncryptRequest

Inherits:
Object
  • Object
show all
Includes:
SteamSerializable
Defined in:
lib/steamd/generated/steammsg.rb

Overview

Class for the MsgChannelEncryptRequest in the Steam Language.

Constant Summary collapse

PROTOCOL_VERSION =

PROTOCOL_VERSION constant

1

Instance Attribute Summary

Attributes included from SteamSerializable

#constants, #variables

Instance Method Summary collapse

Methods included from SteamSerializable

#consts, #deserialize, #encode_to, #flag, #serialize, #vars

Constructor Details

#initializeMsgChannelEncryptRequest

Instantiate a MsgChannelEncryptRequest object



48
49
50
51
52
# File 'lib/steamd/generated/steammsg.rb', line 48

def initialize
  super([{:name=>"protocol_version", :type=>"uint", :modifier=>nil, :value=>"MsgChannelEncryptRequest::PROTOCOL_VERSION", :size=>nil, :modifier_size=>nil}, {:name=>"universe", :type=>"EUniverse", :modifier=>nil, :value=>"EUniverse::INVALID", :size=>nil, :modifier_size=>nil}], [{:name=>"PROTOCOL_VERSION", :type=>"uint", :modifier=>"const", :value=>1, :size=>nil, :modifier_size=>nil}])
  self.protocol_version = MsgChannelEncryptRequest::PROTOCOL_VERSION
  self.universe = EUniverse::INVALID
end

Instance Method Details

#protocol_versionuint

Note:

defaults to MsgChannelEncryptRequest::PROTOCOL_VERSION

Gets the protocol_version variable.

Returns:

  • (uint)

    the value of protocol_version



58
59
60
# File 'lib/steamd/generated/steammsg.rb', line 58

def protocol_version
  @variables['protocol_version'][:value]
end

#protocol_version=(value) ⇒ Object

Sets the protocol_version variable.

Parameters:

  • value (uint)

    the new value



65
66
67
# File 'lib/steamd/generated/steammsg.rb', line 65

def protocol_version=(value)
  @variables['protocol_version'][:value] = value
end

#universeEUniverse

Note:

defaults to EUniverse::INVALID

Gets the universe variable.

Returns:



73
74
75
# File 'lib/steamd/generated/steammsg.rb', line 73

def universe
  @variables['universe'][:value]
end

#universe=(value) ⇒ Object

Sets the universe variable.

Parameters:



80
81
82
# File 'lib/steamd/generated/steammsg.rb', line 80

def universe=(value)
  @variables['universe'][:value] = value
end