| | |
| | | import NetPackCommon
|
| | | import ItemCommon
|
| | | import ChConfig
|
| | | import ObjPool
|
| | |
|
| | | import time
|
| | |
|
| | |
| | | state = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_ChatBoxState, boxID)
|
| | | if not state and boxIDList == None:
|
| | | continue
|
| | | box = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCChatBox)
|
| | | box = ChPyNetSendPack.tagSCChatBox()
|
| | | box.BoxID = boxID
|
| | | box.State = state
|
| | | box.EndTime = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ChatBoxEndTime % boxID)
|
| | |
| | | if not boxList:
|
| | | return
|
| | |
|
| | | clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCChatBoxInfo)
|
| | | clientPack = ChPyNetSendPack.tagSCChatBoxInfo()
|
| | | clientPack.BoxList = boxList
|
| | | clientPack.Count = len(clientPack.BoxList)
|
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|