Class: ConnectData

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

Overview

Class for the ConnectData in the Steam Language.

Constant Summary collapse

CHALLENGE_MASK =

CHALLENGE_MASK constant

ChallengeData::CHALLENGE_MASK

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

#initializeConnectData

Instantiate a ConnectData object



235
236
237
# File 'lib/steamd/generated/netheader.rb', line 235

def initialize
  super([{:name=>"challenge_value", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}], [{:name=>"CHALLENGE_MASK", :type=>"uint", :modifier=>"const", :value=>"ChallengeData::CHALLENGE_MASK", :size=>nil, :modifier_size=>nil}])
end

Instance Method Details

#challenge_valueuint

Note:

defaults to

Gets the challenge_value variable.

Returns:

  • (uint)

    the value of challenge_value



243
244
245
# File 'lib/steamd/generated/netheader.rb', line 243

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

#challenge_value=(value) ⇒ Object

Sets the challenge_value variable.

Parameters:

  • value (uint)

    the new value



250
251
252
# File 'lib/steamd/generated/netheader.rb', line 250

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