# Path: roglick/engine/colors.py
# class RGBBlendedColor(libtcod.Color):
# class HSVBlendedColor(libtcod.Color):
#     def __init__(self, color1, color2, blend=0.50):
#     def __init__(self, color1, color2, blend=0.50):
# def RGBtoHSV(r, g, b):
# def HSVtoRGB(h, s, v):
# 
# Path: roglick/engine/file_obj.py
# class FileObj(object):
# class MultiFileObj(FileObj):
#     def __init__(self, conf_file, obj_key=None):
#     def keys(self):
#     def random(self, rand=None):
#     def _load_file(self, conf_file, obj_key=None):
#     def _make_key(self, item):
#     def _process_data(self, data):
#     def _process_item(self, item):
#     def __getitem__(self, key):
#     def __getattr__(self, key):
#     def __len__(self):
#     def __iter__(self):
#     def __contains__(self, item):
#     def _load_file(self, file_pattern, obj_key=None):


from roglick.engine import colors,file_obj


class Terrain(file_obj.FileObj):
    def __init__(self, key):
        super().__init__('data/terrain.json', key)

    def _process_item(self, item):

# Path: roglick/engine/colors.py
# class RGBBlendedColor(libtcod.Color):
# class HSVBlendedColor(libtcod.Color):
#     def __init__(self, color1, color2, blend=0.50):
#     def __init__(self, color1, color2, blend=0.50):
# def RGBtoHSV(r, g, b):
# def HSVtoRGB(h, s, v):
# 
# Path: roglick/engine/file_obj.py
# class FileObj(object):
# class MultiFileObj(FileObj):
#     def __init__(self, conf_file, obj_key=None):
#     def keys(self):
#     def random(self, rand=None):
#     def _load_file(self, conf_file, obj_key=None):
#     def _make_key(self, item):
#     def _process_data(self, data):
#     def _process_item(self, item):
#     def __getitem__(self, key):
#     def __getattr__(self, key):
#     def __len__(self):
#     def __iter__(self):
#     def __contains__(self, item):
#     def _load_file(self, file_pattern, obj_key=None):


# Path: roglick/dungeon/terrain.py
from roglick.engine import colors,file_obj



class Terrain(file_obj.FileObj):
    def __init__(self, key):
        super().__init__('data/terrain.json', key)

    def _process_item(self, item):

        item['color'] = getattr(colors, item['color'])