Mercurial > parpg-source
comparison components/dialogue.py @ 96:8363261b658e
Added saveable_fields to containable, dialogue and equipable.
author | KarstenBock@gmx.net |
---|---|
date | Tue, 27 Sep 2011 16:05:07 +0200 |
parents | 939984cff702 |
children | f94d4577ca5e |
comparison
equal
deleted
inserted
replaced
95:d67e8288e9bf | 96:8363261b658e |
---|---|
9 # GNU General Public License for more details. | 9 # GNU General Public License for more details. |
10 # | 10 # |
11 # You should have received a copy of the GNU General Public License | 11 # You should have received a copy of the GNU General Public License |
12 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 12 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
13 | 13 |
14 from copy import deepcopy | |
15 | |
14 from base import Base | 16 from base import Base |
15 | 17 |
16 class Dialogue(Base): | 18 class Dialogue(Base): |
17 """Component that stores the dialogue""" | 19 """Component that stores the dialogue""" |
18 | 20 |
19 def __init__(self): | 21 def __init__(self): |
20 """Constructor""" | 22 """Constructor""" |
21 Base.__init__(self, dialogue=object) | 23 Base.__init__(self, dialogue=object) |
24 | |
25 @property | |
26 def saveable_fields(self): | |
27 fields = deepcopy(self.fields) | |
28 del fields["dialogue"] | |
29 return fields |