Пример #1
0
    def Get (self, id):
        x = _pyKyra._resourcevault_get_sprite (self._o, id)
        if x != None:
            return x

        x = _pyKyra._resourcevault_get_font (self._o, id)
        if x != None:
            return x

        x = _pyKyra._resourcevault_get_text (self._o, id)
        if x!= None:
            return x

        x = _pyKyra._resourcevault_get_tile (self._o, id)
        if x!= None:
            return x

        x = _pyKyra._resourcevault_get_bin (self._o, id)
        if x!= None:
            return x

        assert 0, "Bad binary resource name: " + id
Пример #2
0
 def GetFont (self, id):
     x = _pyKyra._resourcevault_get_font (self._o, id)
     assert x!=None, "Bad binary resource name: " + id
     return x