Beispiel #1
0
        private void cbGetRoleData(UnityGMClient.EGetRoleDataResult a_retCode, UnityGMClient.CRole a_roleData)
        {
            if (a_retCode != UnityGMClient.EGetRoleDataResult.EGETROLEDATA_RESUlT_SUCCESS)
            {
                UnityUtility.CTrace.Singleton.debug("获取角色信息失败!");
                this.textRoleData.Text = "获取角色信息失败!";
                return;
            }
            if (a_roleData != null)
            {
                string lg = ""
                            + "区号:" + m_roleKey.m_zoneID + "  "
                            + "账号:" + m_roleKey.m_accountID + "  "
                            + "角色索引:" + m_roleKey.m_roleIndex + " "
                            + "角色ID:" + a_roleData.getRoleID() + "  "
                            + "昵称:" + a_roleData.getRoleName() + "  "
                            + "职业:" + a_roleData.getRoleTPID() + "  "
                            + "等级:" + a_roleData.getLevel() + "\r\n"
                            + "技能点:" + a_roleData.getSkillPoint() + "  "
                            + "PVP币:" + a_roleData.getPVPCoin() + "  "
                            + "体力:" + a_roleData.getVitality() + "  "
                            + "金币:" + a_roleData.getGold() + "  "
                            + "经验:" + a_roleData.getExp() + "  "
                            + "钻石:" + a_roleData.getDiamond() + "  "
                            + "vip积分:" + a_roleData.getVipScore() + "  "
                            + "vip等级:" + a_roleData.getVipLevel() + "  "
                            + "活跃度:" + a_roleData.getActiveDegree() + "\r\n\r\n";

                lg += "战斗力(Combat):" + a_roleData.getCombat() + "   ";
                lg += a_roleData.getBattleAttr().getLogString();
                UnityUtility.CTrace.Singleton.debug(lg);
                this.textRoleData.Text = lg;
            }
        }
Beispiel #2
0
        public void initFormData()
        {
            UnityGMClient.CRole a_roleData = GC.CPlayer.Singleton.getCurRole();
            if (a_roleData != null)
            {
                m_currentRoleKey.m_zoneID    = a_roleData.RoleKey.m_zoneID;
                m_currentRoleKey.m_accountID = a_roleData.RoleKey.m_accountID;
                m_currentRoleKey.m_roleIndex = a_roleData.RoleKey.m_roleIndex;

                textBoxAccountID.Text = m_currentRoleKey.m_accountID.ToString();
                textBoxZoneID.Text    = m_currentRoleKey.m_zoneID.ToString();
                textBoxIndex.Text     = m_currentRoleKey.m_roleIndex.ToString();

                textBoxCMD.Text = "\\AddExp 100";
                string lg = ""
                            + "区号:" + a_roleData.RoleKey.m_zoneID + "  "
                            + "账号:" + a_roleData.RoleKey.m_accountID + "  "
                            + "角色索引:" + a_roleData.RoleKey.m_roleIndex + " "
                            + "角色ID:" + a_roleData.getRoleID() + "  "
                            + "昵称:" + a_roleData.getRoleName() + "  "
                            + "职业:" + a_roleData.getRoleTPID() + "  "
                            + "等级:" + a_roleData.getLevel() + "\r\n"
                            + "技能点:" + a_roleData.getSkillPoint() + "  "
                            + "PVP币:" + a_roleData.getPVPCoin() + "  "
                            + "体力:" + a_roleData.getVitality() + "  "
                            + "金币:" + a_roleData.getGold() + "  "
                            + "经验:" + a_roleData.getExp() + "  "
                            + "钻石:" + a_roleData.getDiamond() + "  "
                            + "vip积分:" + a_roleData.getVipScore() + "  "
                            + "vip等级:" + a_roleData.getVipLevel() + "  "
                            + "活跃度:" + a_roleData.getActiveDegree() + "\r\n\r\n";

                UnityUtility.CTrace.Singleton.debug(lg);
                g_FormRoleData.textRoleData.Text = lg;
            }
        }