Пример #1
0
 public bool IsMatch(Rsc rsc)
 {
     if(rsc.ID!=ID) return false;
     if(rsc.name!=name) return false;
     if(rsc.icon!=icon) return false;
     return true;
 }
Пример #2
0
		public static void AddNewRsc(){
			Rsc rsc=new Rsc();
			rsc.ID=GenerateNewID(rscIDList);
			rscIDList.Add(rsc.ID);
			rscList.Add(rsc);
			SetDirtyRsc();
			RefreshRsc();
		}
Пример #3
0
		public Rsc Clone(){
			Rsc rsc=new Rsc();
			rsc.ID=ID;
			rsc.name=name;
			rsc.icon=icon;
			//rsc.iconName=iconName;
			rsc.value=value;
			return rsc;
		}
Пример #4
0
        public static void AddNewRsc()
        {
            Rsc rsc = new Rsc();

            rsc.ID = GenerateNewID(rscIDList);
            rscIDList.Add(rsc.ID);
            rscList.Add(rsc);
            SetDirtyRsc();
            RefreshRsc();
        }
Пример #5
0
        public Rsc Clone()
        {
            Rsc rsc = new Rsc();

            rsc.ID   = ID;
            rsc.name = name;
            rsc.icon = icon;
            //rsc.iconName=iconName;
            rsc.value = value;
            return(rsc);
        }
Пример #6
0
        void SwapResource(int ID)
        {
            List <Rsc> rscList = EditorDBManager.GetRscList();

            Rsc rsc = rscList[currentSwapID];

            rscList[currentSwapID] = rscList[ID];
            rscList[ID]            = rsc;

            currentSwapID = -1;

            EditorDBManager.SetDirtyRsc();
        }
Пример #7
0
        void SwapResource(int ID)
        {
            List <Rsc> rscList = rscDB.rscList;

            Rsc rsc = rscList[currentSwapID];

            rscList[currentSwapID] = rscList[ID];
            rscList[ID]            = rsc;

            currentSwapID = -1;

            SetDirtyTD();
        }
Пример #8
0
 public bool IsMatch(Rsc rsc)
 {
     if (rsc.ID != ID)
     {
         return(false);
     }
     if (rsc.name != name)
     {
         return(false);
     }
     if (rsc.icon != icon)
     {
         return(false);
     }
     return(true);
 }