Mercurial > parpg-source
comparison components/change_map.py @ 89:939984cff702
Added Base component, which has a saveable_fields property. It is supposed to be derived from, thus it is not in the components list.
author | KarstenBock@gmx.net |
---|---|
date | Tue, 27 Sep 2011 14:58:03 +0200 |
parents | e856b604b650 |
children | 2a12e2843984 |
comparison
equal
deleted
inserted
replaced
88:0411a4bcceee | 89:939984cff702 |
---|---|
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 parpg.bGrease.component import Component | 14 from base import Base |
15 from parpg.bGrease.geometry import Vec2d | 15 from parpg.bGrease.geometry import Vec2d |
16 | 16 |
17 class ChangeMap(Component): | 17 class ChangeMap(Base): |
18 """Component that allows an entity to be contained by Container entity.""" | 18 """Component that allows an entity to be contained by Container entity.""" |
19 | 19 |
20 def __init__(self): | 20 def __init__(self): |
21 """Constructor""" | 21 """Constructor""" |
22 Component.__init__(self, target_map=str, target_position=list) | 22 Base.__init__(self, target_map=str, target_position=list) |