コード例 #1
0
ファイル: GoodsData.cs プロジェクト: chenchungit/ky
 public GoodsData(GoodsData item)
 {
     if (null != item)
     {
         Id                    = -1;
         GoodsID               = item.GoodsID;
         Using                 = 0;
         Forge_level           = item.Forge_level;
         Starttime             = "1900-01-01 12:00:00";
         Endtime               = GameServer.Logic.Global.ConstGoodsEndTime;
         Site                  = 0;
         Quality               = item.Quality;
         Props                 = item.Props;
         GCount                = item.GCount;
         Binding               = item.Binding;
         Jewellist             = item.Jewellist;
         BagIndex              = 0;
         AddPropIndex          = item.AddPropIndex;
         BornIndex             = item.BornIndex;
         Lucky                 = item.Lucky;
         Strong                = item.Strong;
         ExcellenceInfo        = item.ExcellenceInfo;
         AppendPropLev         = item.AppendPropLev;
         ChangeLifeLevForEquip = item.ChangeLifeLevForEquip;
         WashProps             = item.WashProps;
         ElementhrtsProps      = item.ElementhrtsProps;
         SaleMoney1            = item.SaleMoney1;
         SaleYuanBao           = item.SaleYuanBao;
         SaleYinPiao           = item.SaleYinPiao;
     }
 }
コード例 #2
0
        public void CopyPropsTo(GoodsData gd)
        {
            lock (this.ChangedIndexes)
            {
                foreach (UpdatePropIndexes idx in this.ChangedIndexes)
                {
                    UpdatePropIndexes updatePropIndexes = idx;
                    if (updatePropIndexes != UpdatePropIndexes.binding)
                    {
                        switch (updatePropIndexes)
                        {
                        case UpdatePropIndexes.WashProps:
                            gd.WashProps = this.WashProps;
                            break;

                        case UpdatePropIndexes.ElementhrtsProps:
                            gd.ElementhrtsProps = this.ElementhrtsProps;
                            break;

                        case UpdatePropIndexes.JuHun:
                            gd.JuHunID = this.JuHunProps;
                            break;
                        }
                    }
                    else
                    {
                        gd.Binding = this.Binding;
                    }
                }
            }
        }
コード例 #3
0
ファイル: GoodsData.cs プロジェクト: rainbowlee/ClientService
 public GoodsData(GoodsData item)
 {
     if (null != item)
     {
         Id                    = -1;
         GoodsID               = item.GoodsID;
         Using                 = 0;
         Forge_level           = item.Forge_level;
         Starttime             = "1900-01-01 12:00:00";
         Endtime               = "1900-01-01 12:00:00";
         Site                  = 0;
         Quality               = item.Quality;
         Props                 = item.Props;
         GCount                = item.GCount;
         Binding               = item.Binding;
         Jewellist             = item.Jewellist;
         BagIndex              = 0;
         AddPropIndex          = item.AddPropIndex;
         BornIndex             = item.BornIndex;
         Lucky                 = item.Lucky;
         Strong                = item.Strong;
         ExcellenceInfo        = item.ExcellenceInfo;
         AppendPropLev         = item.AppendPropLev;
         ChangeLifeLevForEquip = item.ChangeLifeLevForEquip;
     }
 }
コード例 #4
0
ファイル: GoodsData.cs プロジェクト: qiuhoude/mu_server
 public GoodsData(GoodsData item)
 {
     if (null != item)
     {
         this.Id                    = -1;
         this.GoodsID               = item.GoodsID;
         this.Using                 = 0;
         this.Forge_level           = item.Forge_level;
         this.Starttime             = "1900-01-01 12:00:00";
         this.Endtime               = "1900-01-01 12:00:00";
         this.Site                  = 0;
         this.Quality               = item.Quality;
         this.Props                 = item.Props;
         this.GCount                = item.GCount;
         this.Binding               = item.Binding;
         this.Jewellist             = item.Jewellist;
         this.BagIndex              = 0;
         this.AddPropIndex          = item.AddPropIndex;
         this.BornIndex             = item.BornIndex;
         this.Lucky                 = item.Lucky;
         this.Strong                = item.Strong;
         this.ExcellenceInfo        = item.ExcellenceInfo;
         this.AppendPropLev         = item.AppendPropLev;
         this.ChangeLifeLevForEquip = item.ChangeLifeLevForEquip;
         this.WashProps             = item.WashProps;
         this.ElementhrtsProps      = item.ElementhrtsProps;
         this.SaleMoney1            = item.SaleMoney1;
         this.SaleYuanBao           = item.SaleYuanBao;
         this.SaleYinPiao           = item.SaleYinPiao;
         this.JuHunID               = item.JuHunID;
     }
 }
コード例 #5
0
        public void CopyPropsTo(GoodsData gd)
        {
            lock (ChangedIndexes)
            {
                foreach (var idx in ChangedIndexes)
                {
                    switch (idx)
                    {
                    case UpdatePropIndexes.WashProps:
                        gd.WashProps = WashProps;
                        break;

                    case UpdatePropIndexes.binding:
                        gd.Binding = Binding;
                        break;

                    case UpdatePropIndexes.ElementhrtsProps:
                        gd.ElementhrtsProps = ElementhrtsProps;
                        break;
                    }
                }
            }
        }