Class: MsgHdr
- Inherits:
-
Object
- Object
- MsgHdr
- Includes:
- SteamSerializable
- Defined in:
- lib/steamd/generated/header.rb
Overview
Class for the MsgHdr in the Steam Language.
Instance Attribute Summary
Attributes included from SteamSerializable
Instance Method Summary collapse
-
#initialize ⇒ MsgHdr
constructor
Instantiate a MsgHdr object.
-
#msg ⇒ EMsg
Gets the msg variable.
-
#msg=(value) ⇒ Object
Sets the msg variable.
-
#source_job_id ⇒ ulong
Gets the source_job_id variable.
-
#source_job_id=(value) ⇒ Object
Sets the source_job_id variable.
-
#target_job_id ⇒ ulong
Gets the target_job_id variable.
-
#target_job_id=(value) ⇒ Object
Sets the target_job_id variable.
Methods included from SteamSerializable
#consts, #deserialize, #encode_to, #flag, #serialize, #vars
Constructor Details
#initialize ⇒ MsgHdr
Instantiate a MsgHdr object
7 8 9 10 11 12 |
# File 'lib/steamd/generated/header.rb', line 7 def initialize super([{:name=>"msg", :type=>"EMsg", :modifier=>nil, :value=>"EMsg::INVALID", :size=>nil, :modifier_size=>nil}, {:name=>"target_job_id", :type=>"ulong", :modifier=>nil, :value=>18446744073709551615, :size=>nil, :modifier_size=>nil}, {:name=>"source_job_id", :type=>"ulong", :modifier=>nil, :value=>18446744073709551615, :size=>nil, :modifier_size=>nil}], []) self.msg = EMsg::INVALID self.target_job_id = 18446744073709551615 self.source_job_id = 18446744073709551615 end |
Instance Method Details
#msg ⇒ EMsg
Note:
defaults to EMsg::INVALID
Gets the msg variable.
18 19 20 |
# File 'lib/steamd/generated/header.rb', line 18 def msg @variables['msg'][:value] end |
#msg=(value) ⇒ Object
Sets the msg variable.
25 26 27 |
# File 'lib/steamd/generated/header.rb', line 25 def msg=(value) @variables['msg'][:value] = value end |
#source_job_id ⇒ ulong
Note:
defaults to 18446744073709551615
Gets the source_job_id variable.
48 49 50 |
# File 'lib/steamd/generated/header.rb', line 48 def source_job_id @variables['source_job_id'][:value] end |
#source_job_id=(value) ⇒ Object
Sets the source_job_id variable.
55 56 57 |
# File 'lib/steamd/generated/header.rb', line 55 def source_job_id=(value) @variables['source_job_id'][:value] = value end |
#target_job_id ⇒ ulong
Note:
defaults to 18446744073709551615
Gets the target_job_id variable.
33 34 35 |
# File 'lib/steamd/generated/header.rb', line 33 def target_job_id @variables['target_job_id'][:value] end |
#target_job_id=(value) ⇒ Object
Sets the target_job_id variable.
40 41 42 |
# File 'lib/steamd/generated/header.rb', line 40 def target_job_id=(value) @variables['target_job_id'][:value] = value end |