Class: MsgGCHdrProtoBuf

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

Overview

Class for the MsgGCHdrProtoBuf 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

#initializeMsgGCHdrProtoBuf

Instantiate a MsgGCHdrProtoBuf object



7
8
9
10
11
# File 'lib/steamd/generated/gamecoordinator.rb', line 7

def initialize
  super([{:name=>"msg", :type=>"uint", :modifier=>"protomaskgc", :value=>0, :size=>nil, :modifier_size=>nil}, {:name=>"header_length", :type=>"int", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"proto", :type=>"Gc::CMsgProtoBufHeader", :modifier=>"proto", :value=>nil, :size=>nil, :modifier_size=>"header_length"}], [])
  self.msg = 0
  self.proto = Gc::CMsgProtoBufHeader.new
end

Instance Method Details

#header_lengthint

Note:

defaults to

Gets the header_length variable.

Returns:

  • (int)

    the value of header_length



32
33
34
# File 'lib/steamd/generated/gamecoordinator.rb', line 32

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

#header_length=(value) ⇒ Object

Sets the header_length variable.

Parameters:

  • value (int)

    the new value



39
40
41
# File 'lib/steamd/generated/gamecoordinator.rb', line 39

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

#msguint

Note:

defaults to 0

Gets the msg variable.

Returns:

  • (uint)

    the value of msg



17
18
19
# File 'lib/steamd/generated/gamecoordinator.rb', line 17

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

#msg=(value) ⇒ Object

Sets the msg variable.

Parameters:

  • value (uint)

    the new value



24
25
26
# File 'lib/steamd/generated/gamecoordinator.rb', line 24

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

#protoGc::CMsgProtoBufHeader

Note:

defaults to

Gets the proto variable.

Returns:

  • (Gc::CMsgProtoBufHeader)

    the value of proto



47
48
49
# File 'lib/steamd/generated/gamecoordinator.rb', line 47

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

#proto=(value) ⇒ Object

Sets the proto variable.

Parameters:

  • value (Gc::CMsgProtoBufHeader)

    the new value



54
55
56
# File 'lib/steamd/generated/gamecoordinator.rb', line 54

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