public static CChatEntity Build_4_Team(COMDT_CHAT_MSG_TEAM data) { CChatEntity cChatEntity = new CChatEntity(); cChatEntity.ullUid = data.stFrom.ullUid; cChatEntity.iLogicWorldID = (uint)data.stFrom.iLogicWorldID; cChatEntity.text = UT.Bytes2String(data.szContent); cChatEntity.type = EChaterType.Strenger; CChatUT.GetUser(cChatEntity.type, cChatEntity.ullUid, cChatEntity.iLogicWorldID, out cChatEntity.name, out cChatEntity.openId, out cChatEntity.level, out cChatEntity.head_url, out cChatEntity.stGameVip); cChatEntity.time = CRoleInfo.GetCurrentUTCTime(); return(cChatEntity); }
public static CChatEntity Build_4_Team(COMDT_CHAT_MSG_TEAM data) { CChatEntity entity = new CChatEntity { ullUid = data.stFrom.ullUid, iLogicWorldID = (uint)data.stFrom.iLogicWorldID, text = UT.Bytes2String(data.szContent), type = EChaterType.Strenger }; GetUser(entity.type, entity.ullUid, entity.iLogicWorldID, out entity.name, out entity.level, out entity.head_url, out entity.stGameVip); CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo(); entity.time = (masterRoleInfo != null) ? masterRoleInfo.getCurrentTimeSinceLogin() : 0; return(entity); }