diff engine/python/fife/extensions/savers.py @ 684:4f36c890b1dd

* Merged the 0.3.3dev branche changes to the trunk.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 06 Dec 2010 19:25:27 +0000
parents e3140f01749d
children
line wrap: on
line diff
--- a/engine/python/fife/extensions/savers.py	Mon Dec 06 18:37:18 2010 +0000
+++ b/engine/python/fife/extensions/savers.py	Mon Dec 06 19:25:27 2010 +0000
@@ -215,6 +215,13 @@
 				attr_vals[(None, 'id')] = inst.getId()
 				attr_names[(None, 'id')] = 'id'
 
+			if inst.isOverrideBlocking():
+				attr_vals[(None, 'override_blocking')] = str(int(inst.isOverrideBlocking()))
+				attr_names[(None, 'override_blocking')] = 'override_blocking'
+				if inst.getObject().isBlocking() is not inst.isBlocking():
+					attr_vals[(None, 'blocking')] = str(int(inst.isBlocking()))
+					attr_names[(None, 'blocking')] = 'blocking'
+
 			attrs = AttributesNSImpl(attr_vals, attr_names)
 			self.file.write(self.indent_level)
 			self.xmlout.startElementNS((None, 'i'), 'i', attrs)