|  |  |  | 
|---|
|  |  |  | import ShareDefine | 
|---|
|  |  |  | import ChPyNetSendPack | 
|---|
|  |  |  | import NetPackCommon | 
|---|
|  |  |  | import PlayerControl | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import time | 
|---|
|  |  |  | #--------------------------------------------------------------------- | 
|---|
|  |  |  | 
|---|
|  |  |  | @param recType: 记录类型 | 
|---|
|  |  |  | @param valueList: [Value1,...,Value5] | 
|---|
|  |  |  | @param strValueList: [StrValue1, StrValue2, StrValue3] | 
|---|
|  |  |  | @param notifyType: 0-不通知; 1-通知本人; 2-通知全服 | 
|---|
|  |  |  | @param notifyType: 0-不通知; 1-通知本人; 2-通知全服;3-通知本人单条;4-通知全服单条 | 
|---|
|  |  |  | @param isSort: 删除时是否需要先排序, 默认是 | 
|---|
|  |  |  | ''' | 
|---|
|  |  |  | if recType not in ShareDefine.Def_UniversalGameRecTypeList: | 
|---|
|  |  |  | 
|---|
|  |  |  | SendUniversalGameRecInfo(curPlayer, recType) | 
|---|
|  |  |  | elif notifyType == 2: | 
|---|
|  |  |  | SendUniversalGameRecInfo(None, recType) | 
|---|
|  |  |  | elif notifyType == 3: | 
|---|
|  |  |  | SendUniversalGameRecSingle(curPlayer, recObj) | 
|---|
|  |  |  | elif notifyType == 4: | 
|---|
|  |  |  | SendUniversalGameRecSingle(None, recObj) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return recObj | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | playerManager = GameWorld.GetPlayerManager() | 
|---|
|  |  |  | for i in range(0, playerManager.GetPlayerCount()): | 
|---|
|  |  |  | curPlayer = playerManager.GetPlayerByIndex(i) | 
|---|
|  |  |  | if curPlayer == None or not curPlayer.GetInitOK(): | 
|---|
|  |  |  | if curPlayer == None or not curPlayer.GetInitOK() or PlayerControl.GetIsTJG(curPlayer): | 
|---|
|  |  |  | continue | 
|---|
|  |  |  |  | 
|---|
|  |  |  | NetPackCommon.SendFakePack(curPlayer, universalGameRecInfo) | 
|---|