| | |
| | | # @return None
|
| | | # @remarks 函数详细说明.
|
| | | def GameServer_PlayerSave(index, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | #2009-07-04 因地图服务器有可能关闭重开,这里要判定空
|
| | | if not curPlayer:
|
| | | return
|
| | | # curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | # #2009-07-04 因地图服务器有可能关闭重开,这里要判定空
|
| | | # if not curPlayer:
|
| | | # return
|
| | |
|
| | | # 1为保存 0为正常下线
|
| | | curPlayer.SetCountryLastWeekHornor(1) # 利用此字段通知为保存数据,非下线数据
|
| | | curPlayer.PushSaveData()
|
| | | curPlayer.SetCountryLastWeekHornor(0) # 利用此字段通知为保存数据,非下线数据
|
| | | # # 1为保存 0为正常下线
|
| | | # curPlayer.SetCountryLastWeekHornor(1) # 利用此字段通知为保存数据,非下线数据
|
| | | # curPlayer.PushSaveData()
|
| | | # curPlayer.SetCountryLastWeekHornor(0) # 利用此字段通知为保存数据,非下线数据
|
| | | return
|
| | |
|
| | | #===============================================================================
|