Class: Configs::Natures

Inherits:
Object show all
Defined in:
docs/3_Studio.rb

Overview

Configuration of natures

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNatures

Returns a new instance of Natures.



1324
1325
# File 'docs/3_Studio.rb', line 1324

def initialize
end

Instance Attribute Details

#dataArray<Array<Integer>]

Get the nature data

Returns:

  • (Array<Array<Integer>])

    Array<Array<Integer>]



1320
1321
1322
# File 'docs/3_Studio.rb', line 1320

def data
  @data
end

#db_symbol_to_idHash<Symbol => Integer>

Get the nature ids

Returns:

  • (Hash<Symbol => Integer>)


1323
1324
1325
# File 'docs/3_Studio.rb', line 1323

def db_symbol_to_id
  @db_symbol_to_id
end

Instance Method Details

#[](db_symbol) ⇒ Array<Integer>

Get an ability data by id or db_symbol

Parameters:

  • db_symbol (Symbol)

Returns:

  • (Array<Integer>)


1329
1330
# File 'docs/3_Studio.rb', line 1329

def [](db_symbol)
end

#to_json

Convert the config to json



1332
1333
# File 'docs/3_Studio.rb', line 1332

def to_json(*)
end