Bastien Sevajol 7 년 전
부모
커밋
6e2754a270
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      opencombat/simulation/interior.py

+ 9 - 0
opencombat/simulation/interior.py 파일 보기

@@ -113,6 +113,15 @@ class InteriorManager(object):
113 113
         tile_height: int,
114 114
         invert_y: bool=True,
115 115
     ) -> PngImageFile:
116
+        """
117
+
118
+        :param interiors: List of list of interior tile positions
119
+        :param tile_width: Width of a tile
120
+        :param tile_height: Height of a tile
121
+        :param invert_y: If y reference is top left instead bottom left
122
+        :return: Image givan at __init__ with all tile pixels replaces by transparent
123
+        pixel
124
+        """
116 125
         try:
117 126
             return self._cache[self._get_interior_unique_key(interiors)]
118 127
         except KeyError: