| | |
| | | if npcObj == IPY_GameWorld.gnotSummon:
|
| | | return GetNPCManager().FindSummonNPCByID(curTagNPC.GetID())
|
| | |
|
| | | elif npcObj == IPY_GameWorld.gnotTruck:
|
| | | return GetNPCManager().FindTruckByID(curTagNPC.GetID())
|
| | | |
| | | elif npcObj == IPY_GameWorld.gnotPet:
|
| | | return GetNPCManager().FindPetByID(curTagNPC.GetID())
|
| | |
|
| | |
| | | # @return
|
| | | def GetPlatform():
|
| | | return ReadChConfig.GetPyMongoConfig("platform", "PlatformName")
|
| | |
|
| | | def IsTestPlatform(platform): return platform in ["test", "yun"]
|
| | |
|
| | | #===============================================================================
|
| | | # ##获得当前服务器ID
|
| | |
| | | def SendGameErrorEx(errType, msgInfo="", playerID=0):
|
| | | ErrLog("SendGameErrorEx: %s -> %s" % (errType, msgInfo), playerID)
|
| | | SendGameError(errType, msgInfo)
|
| | | #if GetGameWorld().GetDebugLevel():
|
| | | # raise Exception("%s -> %s" % (errType, msgInfo))
|
| | | if GetGameWorld().GetDebugLevel():
|
| | | raise Exception("%s -> %s" % (errType, msgInfo))
|
| | | return
|
| | |
|
| | | def SendGameError(errType, msgInfo=""):
|