| | |
| | | #===========================================================================
|
| | | return
|
| | |
|
| | | #// A1 01 玩家电脑信息 #tagCMPCInfo
|
| | | #
|
| | | #struct tagCMPCInfo
|
| | | #{
|
| | | # tagHead Head;
|
| | | # BYTE PCOSLen; |
| | | # char PCOS[PCOSLen]; // 操作系统
|
| | | # BYTE ResolutionLen; |
| | | # char Resolution[ResolutionLen]; // 分辨率
|
| | | # BYTE BrowserLen; |
| | | # char Browser[BrowserLen]; // 浏览器
|
| | | # BYTE ScribeTypeLen; |
| | | # char ScribeType[ScribeTypeLen]; // 记录类型
|
| | | # BYTE ScribeDataLen; |
| | | # char ScribeData[ScribeDataLen]; // 记录扩展信息
|
| | | #};
|
| | | def ReceiveClientPCInfo(index, clientData, tick):
|
| | | #===========================================================================
|
| | | # curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | # PCOS = clientData.PCOS
|
| | | # Resolution = clientData.Resolution
|
| | | # Browser = clientData.Browser
|
| | | # ScribeType = clientData.ScribeType
|
| | | # #ScribeData = clientData.ScribeData
|
| | | # |
| | | # GameWorld.DebugLog("ReceiveClientPCInfo %s" % ScribeType)
|
| | | # GameWorld.DebugLog(" PCOS=%s" % PCOS)
|
| | | # GameWorld.DebugLog(" Resolution=%s" % Resolution)
|
| | | # GameWorld.DebugLog(" Browser=%s" % Browser)
|
| | | # |
| | | # # 转化为对方所需格式
|
| | | # if PCOS and "Windows" in PCOS:
|
| | | # PCOS = " ".join(PCOS.split(" ")[:2])
|
| | | # |
| | | # # 转化为对方所需格式
|
| | | # if Resolution:
|
| | | # Resolution = "%s*%s" % eval(Resolution)
|
| | | # |
| | | # if ScribeType == ShareDefine.Def_UserAction_Login:
|
| | | # firstLogin = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FirstLogin)
|
| | | # if not firstLogin:
|
| | | # PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FirstLogin, 1)
|
| | | # WriteEvent_entry_firstlogin(curPlayer, Browser, Resolution, PCOS)
|
| | | # if curPlayer.GetLV() == 1:
|
| | | # WriteEvent_level_up(curPlayer) # 首登发送一次1级数据
|
| | | # GameWorld.DebugLog(" entry_firstlogin")
|
| | | # |
| | | # WriteEvent_login(curPlayer, Browser, Resolution, PCOS)
|
| | | #===========================================================================
|
| | | |
| | | return
|
| | |
|
| | | #// A2 19 游戏建议收集 #tagCMAdviceSubmit
|
| | | #
|
| | | #struct tagCMAdviceSubmit
|
| | | #{
|
| | | # tagHead Head;
|
| | | # BYTE Type; //提交类型
|
| | | # WORD Len;
|
| | | # char Content[Len]; //size = Len
|
| | | #};
|
| | | def OnSubmitBugSuggest(index, clientData, tick):
|
| | | #===========================================================================
|
| | | # curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | # subType = clientData.Type
|
| | | # content = clientData.Content
|
| | | # eventName = Def_Custom_Events_Bug if subType == 0 else Def_Custom_Events_Suggest
|
| | | # WriteEvent_custom_events(curPlayer, eventName, content)
|
| | | # DataRecordPack.DR_BugSuggest(curPlayer, eventName, content)
|
| | | #===========================================================================
|
| | | return
|
| | |
|
| | | def GetScribeEvent_chr_level(curPlayer):
|
| | | transCnt, showLV = GameWorld.GetClientLV(curPlayer)
|
| | | return transCnt * 1000 + showLV
|