Exemplo n.º 1
0
 def registerMessages(self):
     li = [
         PanoConstants.EVENT_HOTSPOT_ACTION,
         PanoConstants.EVENT_HOTSPOT_LOOKAT
     ]
     li.extend(BaseNodeScript.registerMessages(self))
     return li
Exemplo n.º 2
0
 def registerMessages(self):        
     '''
     The purpose of this method is to declare the list of messages IDs for which we are interested to receive. 
     Here we are interested in a single message besides the standard list of message IDs returned by the
     base class.
     It is not necessary to include the list of messages from the base class but it contains some very useful
     message IDs like game_paused, game_resumed, etc., so most probably you will want to do this.
     '''
     return ['sound_finished'].extend(BaseNodeScript.registerMessages(self))