少年修仙传客户端代码仓库
client_Wu Xijin
2018-08-20 ddcba938b4b7cb150170a07d59b480d0748a476c
Core/GameEngine/Model/Config/DialogConfig.cs
@@ -9,41 +9,41 @@
namespace TableConfig {
    
   public partial class DialogConfig : ConfigBase {
   public partial class DialogConfig : ConfigBase {
      public int id { get ; private set ; }
      public int npcId { get ; private set ; }
      public string icon { get ; private set; }
      public string name { get ; private set; }
      public string content { get ; private set; }
      public int nextID { get ; private set ; }
      public int TalkID { get ; private set ; }
      public int id { get ; private set ; }
      public int npcId { get ; private set ; }
      public string icon { get ; private set; }
      public string name { get ; private set; }
      public string content { get ; private set; }
      public int nextID { get ; private set ; }
      public int TalkID { get ; private set ; }
      public override string getKey()
        {
            return id.ToString();
      public override string getKey()
        {
            return id.ToString();
        }
      public override void Parse() {
         try
            {
                id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
            npcId=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
            icon = rawContents[2].Trim();
            name = rawContents[3].Trim();
            content = rawContents[4].Trim();
            nextID=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
            TalkID=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0;
            }
            catch (Exception ex)
            {
                DesignDebug.Log(ex);
         try
            {
                id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
            npcId=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
            icon = rawContents[2].Trim();
            name = rawContents[3].Trim();
            content = rawContents[4].Trim();
            nextID=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
            TalkID=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0;
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
      }