Exemple #1
0
 def StartMission(self, lastsector, cursector, mission):
     debug.info("current sector:" + cursector)
     save_util.saveStringList(0, "wc1sector", (cursector, ))
     if (Director.getSaveDataLength(0, "wc1mission") > 0):
         Director.putSaveData(0, "wc1mission", 0, mission)
     else:
         Director.pushSaveData(0, "wc1mission", mission)
     self.wfm = cursector
     if (lastsector != cursector):
         self.JumpTo(cursector)
Exemple #2
0
 def StartMission (self,lastsector, cursector,mission):
     debug.info("current sector:"+cursector)
     save_util.saveStringList(0,"wc1sector",(cursector,))
     if (Director.getSaveDataLength (0,"wc1mission")>0):
         Director.putSaveData(0,"wc1mission",0,mission)
     else:
         Director.pushSaveData(0,"wc1mission",mission)
     self.wfm=cursector
     if (lastsector!=cursector):
         self.JumpTo(cursector)
 def putShipTypes(self, names):
     save_util.saveStringList(self.playernum, "%s_wingships %s" % (self.faction, names));