mirror of
https://github.com/Steffo99/lihzahrd.git
synced 2024-11-21 15:44:24 +00:00
📔 Fix docstrings for certain files
This commit is contained in:
parent
21e2983072
commit
83b74ecaf4
4 changed files with 10 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
class Coordinates:
|
||||
__slots__ = "x", "y"
|
||||
|
||||
"""A pair of coordinates."""
|
||||
|
||||
__slots__ = "x", "y"
|
||||
|
||||
def __init__(self, x, y):
|
||||
self.x = x
|
||||
self.y = y
|
||||
|
|
|
@ -7,6 +7,8 @@ from .rect import Rect
|
|||
|
||||
|
||||
class FileReader:
|
||||
"""Helper class for deserializing a Terraria world file."""
|
||||
|
||||
__slots__ = ("file",)
|
||||
|
||||
def __init__(self, file: typing.IO):
|
||||
|
|
|
@ -2,6 +2,10 @@ import typing
|
|||
|
||||
|
||||
class Pointers:
|
||||
"""Pointers to the various sections of the Terraria save file.
|
||||
|
||||
All values are in number of bytes from the start."""
|
||||
|
||||
__slots__ = (
|
||||
"file_format",
|
||||
"world_header",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
class Rect:
|
||||
"""Class delimining the bounds of a rectangle."""
|
||||
|
||||
__slots__ = "left", "right", "top", "bottom"
|
||||
|
||||
def __init__(self, left, right, top, bottom):
|
||||
|
|
Loading…
Reference in a new issue