public void AddIdContainerList(int id, unitStauts mResUnit) { if (kIDContainerList.ContainsKey(id)) { kIDContainerList[id] = mResUnit; } else { kIDContainerList.Add(id, mResUnit); } }
public unitStauts GetContainerFromID(int id) { unitStauts mResUnit = null; if (kIDContainerList.TryGetValue(id, out mResUnit)) { return(mResUnit); } return(null); }