With that in mind, I have some questions:
1) in article aboud SDL there is example code:
- Code: Select all
def OnSDLNotify(self, VARname, SDLname, playerID, tag):
if (SDLname != "MyAge"):
print 'SDLname =',SDLname,', not MyAge'
pass
elif (VARname == "MyState"):
ageSDL = PtGetAgeSDL()
getSDL = ageSDL[VARname][0]
Dose checking (SDLname != "MyAge") is required, becouse OnSDLNotify is a static metod, and on setting:
- Code: Select all
ageSDL = PtGetAgeSDL()
ageSDL['MyState'] = (1,)
If not: what for is it?
2) Is there a way to change SDL state of one age, from code of another one?
3) Are there some kind of global variables?