Update attributeManager.py
This commit is contained in:
parent
3f5e3689fa
commit
5948fd4553
@ -11,18 +11,27 @@ class attributeManager():
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.currAttributes = None
|
self.currAttributes = None
|
||||||
self.prevAttributes = None
|
self.prevAttributes = None
|
||||||
self.currAttribDelta = ''
|
self.currAttributeDelta = ''
|
||||||
self.prevAttribDelta = ''
|
self.prevAttributeDelta = ''
|
||||||
self.currAttribCursor = None
|
self.currAttributeCursor = None
|
||||||
self.prefAttribCursor = None
|
self.prefAttributeCursor = None
|
||||||
self.setDefaultAttributes()
|
self.setDefaultAttributes()
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
pass
|
pass
|
||||||
def updateAttributeData(self, prevAttributes, currAttributes):
|
def resetAttributeDelta(self):
|
||||||
self.prevAttributes = prevAttributes
|
self.currAttributeDelta = ''
|
||||||
|
self.prevAttributeDelta = ''
|
||||||
|
def resetAttributeCursor(self):
|
||||||
|
self.currAttributeCursor = None
|
||||||
|
self.prefAttributeCursor = None
|
||||||
|
def resetAttributeData(self, prevAttributes, currAttributes):
|
||||||
|
self.prevAttributes = None
|
||||||
self.currAttributes = currAttributes
|
self.currAttributes = currAttributes
|
||||||
|
def updateAttributeData(self, currAttributes):
|
||||||
|
self.prevAttributes = self.currAttributes
|
||||||
|
self.currAttributes = currAttributes.copy()
|
||||||
def getAttributeByXY(self, x, y):
|
def getAttributeByXY(self, x, y):
|
||||||
if not self.currAttributes:
|
if not self.currAttributes:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user