Class: ChallengeData
- Inherits:
-
Object
- Object
- ChallengeData
- 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
Instance Method Summary collapse
-
#challenge_value ⇒ uint
Gets the challenge_value variable.
-
#challenge_value=(value) ⇒ Object
Sets the challenge_value variable.
-
#initialize ⇒ ChallengeData
constructor
Instantiate a ChallengeData object.
-
#server_load ⇒ uint
Gets the server_load variable.
-
#server_load=(value) ⇒ Object
Sets the server_load variable.
Methods included from SteamSerializable
#consts, #deserialize, #encode_to, #flag, #serialize, #vars
Constructor Details
#initialize ⇒ ChallengeData
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_value ⇒ uint
Note:
defaults to
Gets the challenge_value variable.
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.
206 207 208 |
# File 'lib/steamd/generated/netheader.rb', line 206 def challenge_value=(value) @variables['challenge_value'][:value] = value end |
#server_load ⇒ uint
Note:
defaults to
Gets the server_load variable.
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.
221 222 223 |
# File 'lib/steamd/generated/netheader.rb', line 221 def server_load=(value) @variables['server_load'][:value] = value end |