image.py 453B

12345678910111213141516171819202122232425
  1. # coding: utf-8
  2. import typing
  3. from synergine2.config import Config
  4. if typing.TYPE_CHECKING:
  5. from synergine2_cocos2d.actor import Actor
  6. class ImageCache(object):
  7. def __init__(self) -> None:
  8. self.cache = {}
  9. class ImageCacheManager(object):
  10. def __init__(
  11. self,
  12. actor: 'Actor',
  13. config: Config,
  14. ) -> None:
  15. self.config = config
  16. self.actor = actor
  17. def build(self) -> None:
  18. pass