Class: MsgHdr

Inherits:
Object
  • Object
show all
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

#constants, #variables

Instance Method Summary collapse

Methods included from SteamSerializable

#consts, #deserialize, #encode_to, #flag, #serialize, #vars

Constructor Details

#initializeMsgHdr

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

#msgEMsg

Note:

defaults to EMsg::INVALID

Gets the msg variable.

Returns:

  • (EMsg)

    the value of msg



18
19
20
# File 'lib/steamd/generated/header.rb', line 18

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

#msg=(value) ⇒ Object

Sets the msg variable.

Parameters:

  • value (EMsg)

    the new value



25
26
27
# File 'lib/steamd/generated/header.rb', line 25

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

#source_job_idulong

Note:

defaults to 18446744073709551615

Gets the source_job_id variable.

Returns:

  • (ulong)

    the value of source_job_id



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.

Parameters:

  • value (ulong)

    the new value



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_idulong

Note:

defaults to 18446744073709551615

Gets the target_job_id variable.

Returns:

  • (ulong)

    the value of target_job_id



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.

Parameters:

  • value (ulong)

    the new value



40
41
42
# File 'lib/steamd/generated/header.rb', line 40

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