class MsgHdr
Class for the MsgHdr
in the Steam Language.
Public Class Methods
new()
click to toggle source
Instantiate a MsgHdr
object
Calls superclass method
SteamSerializable::new
# 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
Public Instance Methods
msg()
click to toggle source
Gets the msg variable.
@note defaults to EMsg::INVALID @return [EMsg] the value of msg
# File lib/steamd/generated/header.rb, line 18 def msg @variables['msg'][:value] end
msg=(value)
click to toggle source
Sets the msg variable.
@param value [EMsg] the new value
# File lib/steamd/generated/header.rb, line 25 def msg=(value) @variables['msg'][:value] = value end
source_job_id()
click to toggle source
Gets the source_job_id
variable.
@note defaults to 18446744073709551615 @return [ulong] the value of source_job_id
# File lib/steamd/generated/header.rb, line 48 def source_job_id @variables['source_job_id'][:value] end
source_job_id=(value)
click to toggle source
Sets the source_job_id
variable.
@param value [ulong] the new value
# File lib/steamd/generated/header.rb, line 55 def source_job_id=(value) @variables['source_job_id'][:value] = value end
target_job_id()
click to toggle source
Gets the target_job_id
variable.
@note defaults to 18446744073709551615 @return [ulong] the value of target_job_id
# File lib/steamd/generated/header.rb, line 33 def target_job_id @variables['target_job_id'][:value] end
target_job_id=(value)
click to toggle source
Sets the target_job_id
variable.
@param value [ulong] the new value
# File lib/steamd/generated/header.rb, line 40 def target_job_id=(value) @variables['target_job_id'][:value] = value end