Fix some broken master-doc pages
This commit is contained in:
parent
a352abc1c4
commit
95a2b18d43
29 changed files with 236 additions and 502 deletions
|
|
@ -51,7 +51,7 @@ class Room(DefaultRoom):
|
|||
See examples/object.py for a list of
|
||||
properties and methods available on all Objects.
|
||||
"""
|
||||
|
||||
|
||||
@property
|
||||
def x(self):
|
||||
"""Return the X coordinate or None."""
|
||||
|
|
@ -72,7 +72,7 @@ class Room(DefaultRoom):
|
|||
"""Return the Y coordinate or None."""
|
||||
y = self.tags.get(category="coordy")
|
||||
return int(y) if isinstance(y, str) else None
|
||||
|
||||
|
||||
@y.setter
|
||||
def y(self, y):
|
||||
"""Change the Y coordinate."""
|
||||
|
|
@ -87,7 +87,7 @@ class Room(DefaultRoom):
|
|||
"""Return the Z coordinate or None."""
|
||||
z = self.tags.get(category="coordz")
|
||||
return int(z) if isinstance(z, str) else None
|
||||
|
||||
|
||||
@z.setter
|
||||
def z(self, z):
|
||||
"""Change the Z coordinate."""
|
||||
|
|
@ -99,8 +99,7 @@ class Room(DefaultRoom):
|
|||
```
|
||||
|
||||
If you aren't familiar with the concept of properties in Python, I encourage you to read a good
|
||||
tutorial on the subject. [This article on Python properties](https://www.programiz.com/python-
|
||||
programming/property)
|
||||
tutorial on the subject. [This article on Python properties](https://www.programiz.com/python-programming/property)
|
||||
is well-explained and should help you understand the idea.
|
||||
|
||||
Let's look at our properties for `x`. First of all is the read property.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue