Class: ChallengeData

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

Overview

Class for the ChallengeData in the Steam Language.

Constant Summary collapse

CHALLENGE_MASK =

CHALLENGE_MASK constant

0xA426DF2B

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

#initializeChallengeData

Instantiate a ChallengeData object



191
192
193
# File 'lib/steamd/generated/netheader.rb', line 191

def initialize
  super([{:name=>"challenge_value", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"server_load", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}], [{:name=>"CHALLENGE_MASK", :type=>"uint", :modifier=>"const", :value=>"0xA426DF2B", :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



199
200
201
# File 'lib/steamd/generated/netheader.rb', line 199

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

#challenge_value=(value) ⇒ Object

Sets the challenge_value variable.

Parameters:

  • value (uint)

    the new value



206
207
208
# File 'lib/steamd/generated/netheader.rb', line 206

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

#server_loaduint

Note:

defaults to

Gets the server_load variable.

Returns:

  • (uint)

    the value of server_load



214
215
216
# File 'lib/steamd/generated/netheader.rb', line 214

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

#server_load=(value) ⇒ Object

Sets the server_load variable.

Parameters:

  • value (uint)

    the new value



221
222
223
# File 'lib/steamd/generated/netheader.rb', line 221

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