How to use the cassiopeia.core.common.ghost_load_on function in cassiopeia

To help you get started, we’ve selected a few cassiopeia examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github meraki-analytics / cassiopeia / cassiopeia / core / staticdata / item.py View on Github external
    @ghost_load_on
    def name(self) -> str:
        return self._data[ItemData].name
github meraki-analytics / cassiopeia / cassiopeia / core / staticdata / item.py View on Github external
    @ghost_load_on
    @lazy
    def image(self) -> Image:
        """The image information for this item."""
        image = Image.from_data(self._data[ItemData].image)
        image(version=self.version)
        return image
github meraki-analytics / cassiopeia / cassiopeia / core / staticdata / item.py View on Github external
    @ghost_load_on
    def description(self) -> str:
        return self._data[ItemData].description
github meraki-analytics / cassiopeia / cassiopeia / core / staticdata / realm.py View on Github external
    @ghost_load_on
    def cdn(self) -> str:
        return self._data[RealmData].cdn
github meraki-analytics / cassiopeia / cassiopeia / core / staticdata / champion.py View on Github external
    @ghost_load_on
    @lazy
    def spells(self) -> List[ChampionSpell]:
        """This champion's spells."""
        keys = {0: "Q", 1: "W", 2: "E", 3: "R"}
        spells = []
        for i, spell in enumerate(self._data[ChampionData].spells):
            spell.keyboard_key = keys[i]
            spells.append(ChampionSpell.from_data(spell))
        return SearchableList(spells)
github meraki-analytics / cassiopeia / cassiopeia / core / league.py View on Github external
    @ghost_load_on
    def id(self) -> str:
        return self._data[GrandmasterLeagueListData].id
github meraki-analytics / cassiopeia / cassiopeia / core / staticdata / profileicon.py View on Github external
    @ghost_load_on
    @lazy
    def image(self) -> PILImage:
        return configuration.settings.pipeline.get(PILImage, query={"url": self.url})
github meraki-analytics / cassiopeia / cassiopeia / core / staticdata / item.py View on Github external
    @ghost_load_on
    def max_stacks(self) -> int:
        return self._data[ItemData].max_stacks
github meraki-analytics / cassiopeia / cassiopeia / core / staticdata / item.py View on Github external
    @ghost_load_on
    def tier(self) -> int:
        return self._data[ItemData].tier
github meraki-analytics / cassiopeia / cassiopeia / core / status.py View on Github external
    @ghost_load_on
    @lazy
    def platform(self) -> Platform:
        return self.region.platform