# Path: omnitool/Resources/header.py



from .header import imgheader
import zipfile
import pygame
__author__ = 'Fabian'



RGBA = 0
RGB = 1
formats = ["RGBA", "RGB"]

class ResourceManager():
    def __init__(self, ressourcefile, format = zipfile.ZIP_LZMA):
        self.zip = zipfile.ZipFile(ressourcefile, "r", format)

    def __getitem__(self,path):
        return self.zip.read(path)

    def get_image_data(self, path):
        data = self.zip.read(path)

# Path: omnitool/Resources/header.py



# Path: omnitool/Resources/resources.py
from .header import imgheader
import zipfile
import pygame

__author__ = 'Fabian'



RGBA = 0
RGB = 1
formats = ["RGBA", "RGB"]

class ResourceManager():
    def __init__(self, ressourcefile, format = zipfile.ZIP_LZMA):
        self.zip = zipfile.ZipFile(ressourcefile, "r", format)

    def __getitem__(self,path):
        return self.zip.read(path)

    def get_image_data(self, path):
        data = self.zip.read(path)

        version, width, height = imgheader.unpack(data)