mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
15 lines
367 B
Ruby
15 lines
367 B
Ruby
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
|