Update the doc
This commit is contained in:
@ -66,28 +66,24 @@ class Expansion:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def players(self):
|
def players(self):
|
||||||
""" Players that have access to this expansion. """
|
""" Players that have access to the expansion. """
|
||||||
return self._manager.config[self._ID]["players"]
|
return self._manager.config[self._ID]["players"]
|
||||||
|
|
||||||
@players.setter
|
@players.setter
|
||||||
def players(self, newPlayers):
|
def players(self, newPlayers):
|
||||||
""" Players that have access to this expansion. """
|
self._manager.expansionPlayersChanged(self._ID, newPlayers)
|
||||||
self._manager.config[self._ID]["players"] = tuple(newPlayers)
|
|
||||||
self._manager.expansionPlayersChanged(self._ID)
|
|
||||||
|
|
||||||
@players.deleter
|
@players.deleter
|
||||||
def players(self):
|
def players(self):
|
||||||
self._manager.config[self._ID]["players"] = ()
|
self._manager.expansionPlayersChanged(self._ID, ())
|
||||||
self._manager.expansionPlayersChanged(self._ID)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def tags(self):
|
def tags(self):
|
||||||
""" Players that have access to this expansion. """
|
""" Tags of the expansion. """
|
||||||
return self._manager.config[self._ID]["tags"]
|
return self._manager.config[self._ID]["tags"]
|
||||||
|
|
||||||
@tags.setter
|
@tags.setter
|
||||||
def tags(self, newPlayers):
|
def tags(self, newPlayers):
|
||||||
""" Players that have access to this expansion. """
|
|
||||||
self._manager.config[self._ID]["tags"] = tuple(newPlayers)
|
self._manager.config[self._ID]["tags"] = tuple(newPlayers)
|
||||||
|
|
||||||
@tags.deleter
|
@tags.deleter
|
||||||
@ -96,9 +92,6 @@ class Expansion:
|
|||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def step(self, action):
|
def step(self, action):
|
||||||
"""
|
|
||||||
Call close if an error is thrown
|
|
||||||
"""
|
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user