Exemple #1
0
 public void AddIdContainerList(int id, unitStauts mResUnit)
 {
     if (kIDContainerList.ContainsKey(id))
     {
         kIDContainerList[id] = mResUnit;
     }
     else
     {
         kIDContainerList.Add(id, mResUnit);
     }
 }
Exemple #2
0
    public unitStauts GetContainerFromID(int id)
    {
        unitStauts mResUnit = null;

        if (kIDContainerList.TryGetValue(id, out mResUnit))
        {
            return(mResUnit);
        }

        return(null);
    }