hxp
2024-07-04 eda1c4429db2e7a3b1b79eee0cba0fc7abec7290
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/python
# -*- coding: GBK -*-
#---------------------------------------------------------------------
#
#---------------------------------------------------------------------
##@package OpenExam
# @todo: ¿ªÆô´ðÌâ»î¶¯
#
# @author: panwei
# @date 2011-05-20
# @version 1.0
#
# @note: 
#---------------------------------------------------------------------
"""Version = 2011-05-20 10:10"""
#---------------------------------------------------------------------
import ShareDefine
import PlayerExam
import GameWorld
import ChConfig
#---------------------------------------------------------------------
## Ö´ÐÐÂß¼­  Ö´Ðиø¶¨²ÎÊý´ÎonHour
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param cmdList ´«Èë²ÎÊý
#  @return None
#  @remarks Ö´Ðиø¶¨²ÎÊý´ÎonHour
def OnExec(curPlayer, cmdList):
    if len(cmdList) != 1:
        return
    
    openKey = cmdList[0]
    
    if openKey not in ShareDefine.Def_Game_ExamTypeList:
        return
    
    gameWorld = GameWorld.GetGameWorld()
    
    if gameWorld.GetDictByKey(ChConfig.Def_WorldKey_ExamStep) != PlayerExam.Def_ExamStep_Close:
        PlayerExam.__Exam_Close(openKey, GameWorld.GetGameWorld().GetTick())
    
    PlayerExam.Exam_ChangeState(openKey)
    GameWorld.SendMapServerMsgEx('Game_EXAM', openKey)
    return