Class: MaimaiNet::Page::PlayerData

Inherits:
Base
  • Object
show all
Defined in:
lib/maimai_net/page.rb

Constant Summary collapse

STAT_KEYS =
%i(
  count_sssp count_sss
  count_ssp  count_ss
  count_sp   count_s
  count_clear
  count_dx5
  count_dx4  count_dx3
  count_dx2  count_dx1
  count_max  count_ap
  count_gfc  count_fc
  count_fdx2 count_fdx1
  count_fs2  count_fs1  count_sync_play
).freeze
STAT_FIELDS =
{
  ranks: [
    %i(count_s count_sp count_ss count_ssp count_sss count_sssp),
    %i(s s+ ss ss+ sss sss+),
  ],
  dx_ranks: [
    Array.new(5) do |i| :"count_dx#{i.succ}" end,
    Array.new(5) do |i| i.succ end,
  ],
  flags: [
    %i(count_fc count_gfc count_ap count_max),
    %i(fc gfc ap max),
  ],
  sync_flags: [
    %i(count_sync_play count_fs1 count_fs2 count_fdx1 count_fdx2),
    %i(play full_sync_miss full_sync_match full_deluxe_miss full_deluxe_match),
  ],
}.freeze

Instance Method Summary collapse

Methods inherited from Base

#initialize, parse, #validate!

Methods included from HelperSupport

extended, #helper_method, #method_added

Methods included from ModuleExt::MethodCache

included, #singleton_method_added

Methods included from ModuleExt::HaveClassMethods

#class_method, #included

Constructor Details

This class inherits a constructor from MaimaiNet::Page::Base

Instance Method Details

#initialize_extensionObject



91
92
93
94
95
96
# File 'lib/maimai_net/page.rb', line 91

def initialize_extension
  super

  @gameplay_block = @root.at_css('.see_through_block:nth-of-type(1)')
  @player_block = @gameplay_block.at_css('.basic_block')
end