コード例 #1
0
 public void Clear()
 {
     this.ullUid        = 0L;
     this.iLogicWorldID = 0;
     this.name          = this.head_url = this.level = this.text = string.Empty;
     this.TextObjList.Clear();
     this.stGameVip   = null;
     this.final_width = 0f;
     this.type        = EChaterType.None;
 }
コード例 #2
0
ファイル: CChatEntity.cs プロジェクト: TonyDongGuaPi/joework
 public void Clear()
 {
     this.ullUid        = 0uL;
     this.iLogicWorldID = 0u;
     this.name          = (this.head_url = (this.level = (this.text = string.Empty)));
     this.TextObjList.Clear();
     this.stGameVip   = null;
     this.final_width = 0f;
     this.type        = EChaterType.None;
     this.bHasReaded  = true;
 }
コード例 #3
0
        private void Show_Enemy(COMDT_BURNING_ENEMY_TEAM_INFO info, int levelIndex)
        {
            string                headurl       = string.Empty;
            COMDT_PLAYERINFO      stEnemyDetail = null;
            uint                  force         = 0;
            COMDT_GAME_VIP_CLIENT nobeVip       = null;

            if (info.bType == 1)
            {
                stEnemyDetail = info.stDetail.stRealMan.stEnemyDetail;
                force         = info.dwEnemyTeamForce;
                headurl       = UT.Bytes2String(info.stDetail.stRealMan.szHeadUrl);
                nobeVip       = info.stDetail.stRealMan.stVip;
            }
            else
            {
                stEnemyDetail = info.stDetail.stRobot.stEnemyDetail;
                force         = info.dwEnemyTeamForce;
                nobeVip       = null;
            }
            this._Show_PlayerInfo(stEnemyDetail, force, levelIndex, headurl, nobeVip);
        }
コード例 #4
0
ファイル: CChatUT.cs プロジェクト: isoundy000/wzry-1
        public static void GetUser(EChaterType type, ulong ulluid, uint logicworld_id, out string name, out string level, out string head_url, out COMDT_GAME_VIP_CLIENT stGameVip)
        {
            name      = "error";
            level     = "-1";
            head_url  = string.Empty;
            stGameVip = null;
            if (type == EChaterType.Self)
            {
                CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo();

                if (masterRoleInfo != null)
                {
                    name      = masterRoleInfo.Name;
                    level     = masterRoleInfo.PvpLevel.ToString();
                    stGameVip = masterRoleInfo.GetNobeInfo().stGameVipClient;
                    head_url  = masterRoleInfo.HeadUrl.Substring(0, masterRoleInfo.HeadUrl.LastIndexOf("/"));
                }
            }
            else if (type == EChaterType.Friend)
            {
                COMDT_FRIEND_INFO gameOrSnsFriend = Singleton <CFriendContoller> .GetInstance().model.GetGameOrSnsFriend(ulluid, logicworld_id);

                if (gameOrSnsFriend != null)
                {
                    name      = UT.Bytes2String(gameOrSnsFriend.szUserName);
                    level     = ((int)gameOrSnsFriend.dwPvpLvl).ToString();
                    head_url  = UT.Bytes2String(gameOrSnsFriend.szHeadUrl);
                    stGameVip = gameOrSnsFriend.stGameVip;
                }
            }
            else if ((type == EChaterType.Strenger) || (type == EChaterType.GuildMember))
            {
                COMDT_CHAT_PLAYER_INFO comdt_chat_player_info = Singleton <CChatController> .GetInstance().model.Get_Palyer_Info(ulluid, logicworld_id);

                if (comdt_chat_player_info != null)
                {
                    name      = UT.Bytes2String(comdt_chat_player_info.szName);
                    level     = ((int)comdt_chat_player_info.dwLevel).ToString();
                    head_url  = UT.Bytes2String(comdt_chat_player_info.szHeadUrl);
                    stGameVip = comdt_chat_player_info.stVip;
                }
            }
            else if ((type == EChaterType.Speaker) || (type == EChaterType.LoudSpeaker))
            {
                COMDT_CHAT_PLAYER_INFO comdt_chat_player_info2 = Singleton <CChatController> .GetInstance().model.Get_Palyer_Info(ulluid, logicworld_id);

                if (comdt_chat_player_info2 != null)
                {
                    name      = UT.Bytes2String(comdt_chat_player_info2.szName);
                    level     = ((int)comdt_chat_player_info2.dwLevel).ToString();
                    head_url  = UT.Bytes2String(comdt_chat_player_info2.szHeadUrl);
                    stGameVip = comdt_chat_player_info2.stVip;
                }
            }
        }
コード例 #5
0
        private void _Show_PlayerInfo(COMDT_PLAYERINFO info, uint force, int levelIndex, string headurl = "", COMDT_GAME_VIP_CLIENT nobeVip = null)
        {
            if (info == null || info.szName == null)
            {
                return;
            }
            this.nameText.text  = UT.Bytes2String(info.szName);
            this.levelText.text = info.dwLevel.ToString();
            if (string.IsNullOrEmpty(headurl))
            {
                this.HttpImage.GetComponent <Image>().SetSprite(CUIUtility.s_Sprite_Dynamic_Icon_Dir + Singleton <BurnExpeditionController> .get_instance().model.GetRandomRobotIcon(levelIndex), this.map_fromScript, true, false, false, false);
            }
            else
            {
                UT.SetHttpImage(this.HttpImage, headurl);
            }
            Image component  = this.enemyNode.transform.FindChild("PlayerIcon/NobeIcon").GetComponent <Image>();
            Image component2 = this.enemyNode.transform.FindChild("PlayerIcon/pnlSnsHead/NobeImag").GetComponent <Image>();

            if (nobeVip != null)
            {
                if (component)
                {
                    MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component, (int)nobeVip.dwCurLevel, false);
                }
                if (component2)
                {
                    MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component2, (int)nobeVip.dwHeadIconId);
                }
            }
            this.enemy_node_0.CustomSetActive(false);
            this.enemy_node_1.CustomSetActive(false);
            this.enemy_node_2.CustomSetActive(false);
            for (int i = 0; i < info.astChoiceHero.Length; i++)
            {
                COMDT_CHOICEHERO cOMDT_CHOICEHERO = info.astChoiceHero[i];
                if (cOMDT_CHOICEHERO != null && cOMDT_CHOICEHERO.stBaseInfo.stCommonInfo.dwHeroID != 0u)
                {
                    this._Show_Enemy_Heros(i, cOMDT_CHOICEHERO.stBaseInfo.stCommonInfo.dwHeroID, string.Empty, (int)cOMDT_CHOICEHERO.stBaseInfo.stCommonInfo.wLevel, (int)cOMDT_CHOICEHERO.stBaseInfo.stCommonInfo.wStar, cOMDT_CHOICEHERO.stBurningInfo.dwBloodTTH, cOMDT_CHOICEHERO.stBaseInfo.stCommonInfo.dwHeroID);
                }
            }
            this.SymbolLevel.CustomSetActive(false);
            for (int j = 0; j < info.astChoiceHero.Length; j++)
            {
                COMDT_CHOICEHERO cOMDT_CHOICEHERO2 = info.astChoiceHero[j];
                if (cOMDT_CHOICEHERO2 != null && cOMDT_CHOICEHERO2.stBaseInfo.stCommonInfo.dwHeroID != 0u)
                {
                    int symbolLvWithArray = CSymbolInfo.GetSymbolLvWithArray(cOMDT_CHOICEHERO2.SymbolID);
                    if (symbolLvWithArray > 0)
                    {
                        this.SymbolLevel.CustomSetActive(true);
                        Utility.GetComponetInChild <Text>(this.SymbolLevel, "Text").text = symbolLvWithArray.ToString();
                    }
                    break;
                }
            }
            BurnExpeditionModel model = Singleton <BurnExpeditionController> .get_instance().model;

            uint[] array = model.Get_Buffs(levelIndex);
            this._Show_Buff(this._GetBuffNode(0), (int)array[0], false);
            this._Show_Buff(this._GetBuffNode(1), (int)array[1], false);
            this._Show_Buff(this._GetBuffNode(2), (int)array[2], false);
            this._Show_Buff_Selected_Index(model.curSelect_BuffIndex);
        }