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(); }
public Rsc Clone(){ Rsc rsc=new Rsc(); rsc.ID=ID; rsc.name=name; rsc.icon=icon; //rsc.iconName=iconName; rsc.value=value; return rsc; }
public static void AddNewRsc() { Rsc rsc = new Rsc(); rsc.ID = GenerateNewID(rscIDList); rscIDList.Add(rsc.ID); rscList.Add(rsc); SetDirtyRsc(); RefreshRsc(); }
public Rsc Clone() { Rsc rsc = new Rsc(); rsc.ID = ID; rsc.name = name; rsc.icon = icon; //rsc.iconName=iconName; rsc.value = value; return(rsc); }
void SwapResource(int ID) { List <Rsc> rscList = EditorDBManager.GetRscList(); Rsc rsc = rscList[currentSwapID]; rscList[currentSwapID] = rscList[ID]; rscList[ID] = rsc; currentSwapID = -1; EditorDBManager.SetDirtyRsc(); }
void SwapResource(int ID) { List <Rsc> rscList = rscDB.rscList; Rsc rsc = rscList[currentSwapID]; rscList[currentSwapID] = rscList[ID]; rscList[ID] = rsc; currentSwapID = -1; SetDirtyTD(); }
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); }