Class: PUBG::Telemetry::LogPlayerAttack

Inherits:
Object
  • Object
show all
Defined in:
lib/pubg/telemetry/log_player_attack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ LogPlayerAttack

Returns a new instance of LogPlayerAttack.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/pubg/telemetry/log_player_attack.rb', line 10

def initialize(args)
  @data = args
  @attackid = args["AttackId"]
  @attacker = Attacker.new(args["Attacker"])
  @attacktype = args["AttackType"]
  @weapon = Weapon.new(args["Weapon"])
  @vehicle = Vehicle.new(args["Vehicle"])
  @_V = args["_V"]
  @_D = args["_D"]
  @_T = args["_T"]
end

Instance Attribute Details

#_DObject (readonly)

Returns the value of attribute _D.



8
9
10
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8

def _D
  @_D
end

#_TObject (readonly)

Returns the value of attribute _T.



8
9
10
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8

def _T
  @_T
end

#_VObject (readonly)

Returns the value of attribute _V.



8
9
10
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8

def _V
  @_V
end

#attackerObject (readonly)

Returns the value of attribute attacker.



8
9
10
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8

def attacker
  @attacker
end

#attackidObject (readonly)

Returns the value of attribute attackid.



8
9
10
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8

def attackid
  @attackid
end

#attacktypeObject (readonly)

Returns the value of attribute attacktype.



8
9
10
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8

def attacktype
  @attacktype
end

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8

def data
  @data
end

#vehicleObject (readonly)

Returns the value of attribute vehicle.



8
9
10
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8

def vehicle
  @vehicle
end

#weaponObject (readonly)

Returns the value of attribute weapon.



8
9
10
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8

def weapon
  @weapon
end