Class: MsgClientAppUsageEvent

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

Overview

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

#initializeMsgClientAppUsageEvent

Instantiate a MsgClientAppUsageEvent object



318
319
320
# File 'lib/steamd/generated/steammsg.rb', line 318

def initialize
  super([{:name=>"app_usage_event", :type=>"EAppUsageEvent", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"game_id", :type=>"ulong", :modifier=>"gameidmarshal", :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"offline", :type=>"ushort", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}], [])
end

Instance Method Details

#app_usage_eventEAppUsageEvent

Note:

defaults to

Gets the app_usage_event variable.

Returns:



326
327
328
# File 'lib/steamd/generated/steammsg.rb', line 326

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

#app_usage_event=(value) ⇒ Object

Sets the app_usage_event variable.

Parameters:



333
334
335
# File 'lib/steamd/generated/steammsg.rb', line 333

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

#game_idulong

Note:

defaults to

Gets the game_id variable.

Returns:

  • (ulong)

    the value of game_id



341
342
343
# File 'lib/steamd/generated/steammsg.rb', line 341

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

#game_id=(value) ⇒ Object

Sets the game_id variable.

Parameters:

  • value (ulong)

    the new value



348
349
350
# File 'lib/steamd/generated/steammsg.rb', line 348

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

#offlineushort

Note:

defaults to

Gets the offline variable.

Returns:

  • (ushort)

    the value of offline



356
357
358
# File 'lib/steamd/generated/steammsg.rb', line 356

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

#offline=(value) ⇒ Object

Sets the offline variable.

Parameters:

  • value (ushort)

    the new value



363
364
365
# File 'lib/steamd/generated/steammsg.rb', line 363

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