mkxp/scripts/Language.rb

16 lines
367 B
Ruby
Raw Normal View History

2015-11-17 20:35:51 +00:00
class Language
attr_reader :font
attr_reader :character_table
attr_reader :character_table_height
def initialize(font, character_table, character_table_height)
@font = font
@character_table = character_table
@character_table_height = character_table_height
end
def self.get(code = :en)
return LANGUAGES[code] || LANGUAGES[:en]
end
end