classicchars: Silence "state not loaded" warnings
This commit is contained in:
parent
44a1822f42
commit
8e270e4acb
2 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@ class CharNeutralState(StateData.StateData):
|
||||||
StateData.StateData.__init__(self, doneEvent)
|
StateData.StateData.__init__(self, doneEvent)
|
||||||
self.__doneEvent = doneEvent
|
self.__doneEvent = doneEvent
|
||||||
self.character = character
|
self.character = character
|
||||||
|
StateData.StateData.load(self)
|
||||||
|
|
||||||
def enter(self, startTrack = None, playRate = None):
|
def enter(self, startTrack = None, playRate = None):
|
||||||
StateData.StateData.enter(self)
|
StateData.StateData.enter(self)
|
||||||
|
@ -56,6 +57,7 @@ class CharWalkState(StateData.StateData):
|
||||||
self.oldOffsetX = 0
|
self.oldOffsetX = 0
|
||||||
self.olfOffsetY = 0
|
self.olfOffsetY = 0
|
||||||
self.walkTrack = None
|
self.walkTrack = None
|
||||||
|
StateData.StateData.load(self)
|
||||||
return
|
return
|
||||||
|
|
||||||
def enter(self, startTrack = None, playRate = None):
|
def enter(self, startTrack = None, playRate = None):
|
||||||
|
|
|
@ -15,6 +15,7 @@ class CharLonelyStateAI(StateData.StateData):
|
||||||
StateData.StateData.__init__(self, doneEvent)
|
StateData.StateData.__init__(self, doneEvent)
|
||||||
self.__doneEvent = doneEvent
|
self.__doneEvent = doneEvent
|
||||||
self.character = character
|
self.character = character
|
||||||
|
StateData.StateData.load(self)
|
||||||
|
|
||||||
def enter(self):
|
def enter(self):
|
||||||
if hasattr(self.character, 'name'):
|
if hasattr(self.character, 'name'):
|
||||||
|
@ -51,6 +52,7 @@ class CharChattyStateAI(StateData.StateData):
|
||||||
self.nextChatTime = 0
|
self.nextChatTime = 0
|
||||||
self.lastMessage = [
|
self.lastMessage = [
|
||||||
-1, -1]
|
-1, -1]
|
||||||
|
StateData.StateData.load(self)
|
||||||
|
|
||||||
def enter(self):
|
def enter(self):
|
||||||
if hasattr(self.character, 'name'):
|
if hasattr(self.character, 'name'):
|
||||||
|
|
Loading…
Reference in a new issue