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
44
45
46
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package GM.Commands.Robot
#
# @todo:»úÆ÷ÈË
# @author hxp
# @date 2025-09-12
# @version 1.0
#
# ÏêϸÃèÊö: »úÆ÷ÈË
#
#-------------------------------------------------------------------------------
#"""Version = 2025-09-12 10:30"""
#-------------------------------------------------------------------------------
 
import GameWorld
import PlayerViewCache
 
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param msgList ²ÎÊýÁбí 
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer, msgList):
    if not msgList:
        GameWorld.DebugAnswer(curPlayer, "µ¼³ö»úÆ÷ÈË: Robot Íæ¼ÒID")
        return
    
    value = msgList[0]
    if len(msgList) == 1:
        tagPlayerID = value if value else curPlayer.GetPlayerID()
        viewCache = PlayerViewCache.FindViewCache(tagPlayerID)
        if not viewCache:
            GameWorld.DebugAnswer(curPlayer, "ûÓиÃÍæ¼Ò»º´æÎÞ·¨µ¼³ö! %s" % tagPlayerID)
            return
        robotDict = PlayerViewCache.GetRobotByViewCache(viewCache)
        GameWorld.DebugLog("robotDict:%s" % robotDict)
        GameWorld.DebugAnswer(curPlayer, "Òѵ¼³ö£¡¿É¿½±´µ½»úÆ÷È˱í")
        return
    
    return