Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SceneComponent:
- def __init__(self, type, attributes):
- self.type = type
- self.attributes = attributes
- class SceneLocation(SceneComponent):
- def __init__(self, type="EMPTY", attributes=[]):
- SceneComponent.__init__(self, type, attributes)
- def __str__(self):
- return "SceneLocation: type: %s, attributes: %s" % (self.type, self.attributes)
- class SceneObject(SceneComponent):
- def __init__(self, type, attributes):
- SceneComponent.__init__(self, type, attributes)
- def __str__(self):
- return "SceneObject: type: %s, attributes: %s" % (self.type, self.attributes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement