Class: Configs::Natures

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

Overview

Configuration of natures

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNatures

Returns a new instance of Natures.



1293
1294
# File 'docs/00800_Studio.rb', line 1293

def initialize
end

Instance Attribute Details

#dataArray<Array<Integer>]

Get the nature data

Returns:

  • (Array<Array<Integer>])

    Array<Array<Integer>]



1289
1290
1291
# File 'docs/00800_Studio.rb', line 1289

def data
  @data
end

#db_symbol_to_idHash<Symbol => Integer>

Get the nature ids

Returns:

  • (Hash<Symbol => Integer>)


1292
1293
1294
# File 'docs/00800_Studio.rb', line 1292

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>)


1298
1299
# File 'docs/00800_Studio.rb', line 1298

def [](db_symbol)
end

#to_json

Convert the config to json



1301
1302
# File 'docs/00800_Studio.rb', line 1301

def to_json(*)
end