少年修仙传客户端代码仓库
client_linchunjie
2018-09-04 365adebaa2a0ea75a83d80c23411475b9b8495b0
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
7个文件已修改
70 ■■■■ 已修改文件
Core/GameEngine/Model/Config/ItemConfig.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/ItemConfig.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/GameNetSystem.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/Socket/ClientSocketController.cs 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeWinModel.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FriendSystem/New/FriendsModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemTipsModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/ItemConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Friday, August 31, 2018
//    [  Date ]:           Tuesday, September 04, 2018
//--------------------------------------------------------
using UnityEngine;
@@ -21,7 +21,7 @@
        public int UseLV { get ; private set ; }
        public int CanSell { get ; private set ; }
        public int CanTrade { get ; private set ; }
        public int ComposeID { get ; private set ; }
        public int[] JumpComposeCondi;
        public int CanDrop { get ; private set ; }
        public int CanBind { get ; private set ; }
        public int CDType { get ; private set ; }
@@ -110,7 +110,12 @@
            
                CanTrade=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0; 
            
                ComposeID=IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]):0;
                string[] JumpComposeCondiStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                JumpComposeCondi = new int[JumpComposeCondiStringArray.Length];
                for (int i=0;i<JumpComposeCondiStringArray.Length;i++)
                {
                     int.TryParse(JumpComposeCondiStringArray[i],out JumpComposeCondi[i]);
                }
            
                CanDrop=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0; 
            
Core/GameEngine/Model/Config/ItemConfig.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: cfc9e4de91b5b6741bf06e2003e353b9
timeCreated: 1535682711
timeCreated: 1536031053
licenseType: Pro
MonoImporter:
  serializedVersion: 2
Core/NetworkPackage/GameNetSystem.cs
@@ -15,9 +15,11 @@
    DisconnectState disconnectState;
    NetState m_NetState;
    public NetState netState {
    public NetState netState
    {
        get { return this.m_NetState; }
        set {
        set
        {
            if (this.m_NetState != value)
            {
                switch (m_NetState)
@@ -99,9 +101,16 @@
    public void BeginConnectGameServer(string _ip, int _port, Action _onConnected)
    {
        if (socketController != null && socketController.Connected)
        try
        {
            socketController.CloseConnect();
            if (socketController != null && socketController.Connected)
            {
                socketController.CloseConnect();
            }
        }
        catch (System.Exception ex)
        {
            DebugEx.Log(ex);
        }
        socketController = new ClientSocketController();
Core/NetworkPackage/Socket/ClientSocketController.cs
@@ -9,7 +9,8 @@
public class ClientSocketController
{
    Socket m_Socket;
    public Socket socket {
    public Socket socket
    {
        get { return m_Socket; }
    }
@@ -114,16 +115,31 @@
    /// </summary>
    public void CloseConnect()
    {
        isStopTreading = true;
        if (m_packageThread != null)
        try
        {
            m_packageThread.Abort();
            isStopTreading = true;
            if (m_packageThread != null)
            {
                m_packageThread.Abort();
            }
        }
        catch (System.Exception ex)
        {
            DebugEx.Log(ex);
        }
        if (m_Socket != null && m_Socket.Connected)
        try
        {
            m_Socket.Shutdown(SocketShutdown.Both);
            m_Socket.Close();
            if (m_Socket != null && m_Socket.Connected)
            {
                m_Socket.Shutdown(SocketShutdown.Both);
                m_Socket.Close();
            }
        }
        catch (System.Exception ex)
        {
            DebugEx.Log(ex);
        }
        sendQueue.Clear();
System/Compose/New/ComposeWinModel.cs
@@ -801,7 +801,9 @@
        ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemId);
        if (itemConfig == null) return false;
        ItemCompoundConfig itemCompound = Config.Instance.Get<ItemCompoundConfig>(itemConfig.ComposeID);
        int[] composeCondi = itemConfig.JumpComposeCondi;
        if (composeCondi.Length < 3) return false;
        ItemCompoundConfig itemCompound = GetThirdTypeModellist(composeCondi[0],composeCondi[1],composeCondi[2])[0];
        if(itemCompound.levelNeed <= PlayerDatas.Instance.baseData.LV)
        {
            switch (itemCompound.firstType)
@@ -824,7 +826,7 @@
            }
            this.secondType = itemCompound.secondType;
            if(itemConfig.ComposeID == 223)
            if(itemCompound.firstType == 5 && itemCompound.secondType == 3)
            {
                this.thirdType = PlayerDatas.Instance.baseData.Job;
            }
System/FriendSystem/New/FriendsModel.cs
@@ -133,7 +133,7 @@
        ChatCtrl.Inst.PteChatName = name;
        LanguageVerify.toPlayerLevel = 0;
        MapConfig mapConfig = Config.Instance.Get<MapConfig>(PlayerDatas.Instance.baseData.MapID);
        string msg = StringUtility.Contact(Language.Get("KillOthersDes", mapConfig.Name,StringUtility.Contact("<color=#FF0101FF", UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.PlayerName), "</color>")),ChatCtrl.KILL_IDENTIFY);
        string msg = StringUtility.Contact(Language.Get("KillOthersDes", mapConfig.Name,StringUtility.Contact("<color=#FF0101FF>", UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.PlayerName), "</color>")),ChatCtrl.KILL_IDENTIFY);
        ChatCtrl.Inst.SendChatInfo(ChatInfoType.Friend,msg);
    }
System/KnapSack/Logic/ItemTipsModel.cs
@@ -612,7 +612,7 @@
            if (!isOverdue)
            {
                if(attrData.itemConfig.ComposeID != 0)
                if(attrData.itemConfig.JumpComposeCondi != null && attrData.itemConfig.JumpComposeCondi.Length > 0)
                {
                    attrData.SetTipsFuncBtn(ItemWinBtnType.compose, (ItemWinBtnType, ItemAttrData) => {
                        int jumpId = 0;