| | |
| | | import AttackCommon
|
| | | import ChItem
|
| | | import PlayerGMOper
|
| | | import GameLogInfo
|
| | | import ItemCommon
|
| | | import OperControlManager
|
| | | import ShareDefine
|
| | |
| | | # @return 返回值, 无意义
|
| | | # @remarks C++封包触发, 全局定时器, 处理玩家状态
|
| | | def __Func_ProcessState(tick):
|
| | | timeClock = time.clock()
|
| | | #2009-07-01断言tick >=0 ,服务器tick为DWord,超过24天未重启硬件,将导致逻辑不可预知
|
| | | if tick < 0 :
|
| | | GameWorld.Log('###服务器运行时间超过24天 tick = %s' % (tick))
|
| | |
| | | if curPlayer.GetID() == 0:
|
| | | continue
|
| | |
|
| | | ProcessPlayerState(curPlayer, tick) |
| | | |
| | | #记录玩家逻辑处理总耗时
|
| | | GameLogInfo.LogInfo_PlayerLogicTime(timeClock)
|
| | | ProcessPlayerState(curPlayer, tick)
|
| | | |
| | | return
|
| | |
|
| | | #---------------------------------------------------------------------
|