Implement pattern copying

This commit is contained in:
cncfanatics
2010-10-11 09:57:10 +02:00
parent 57ed2bf246
commit 85a8e561ae
3 changed files with 15 additions and 2 deletions

View File

@@ -19,6 +19,7 @@
import eos.db
import eos.types
import copy
class DamagePattern():
instance = None
@@ -58,5 +59,10 @@ class DamagePattern():
def deletePattern(self, p):
eos.db.remove(p)
def copyPattern(self, p):
newP = copy.deepcopy(p)
eos.db.save(newP)
return newP
def saveChanges(self, p):
eos.db.save(p)