Example #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;
 }
		public static void AddNewRsc(){
			Rsc rsc=new Rsc();
			rsc.ID=GenerateNewID(rscIDList);
			rscIDList.Add(rsc.ID);
			rscList.Add(rsc);
			SetDirtyRsc();
			RefreshRsc();
		}
Example #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;
		}
Example #4
0
        public static void AddNewRsc()
        {
            Rsc rsc = new Rsc();

            rsc.ID = GenerateNewID(rscIDList);
            rscIDList.Add(rsc.ID);
            rscList.Add(rsc);
            SetDirtyRsc();
            RefreshRsc();
        }
Example #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);
        }
Example #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();
        }
Example #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();
        }
Example #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);
 }