Esempio n. 1
0
 protected void LoadChangeRelationShipCD(Dictionary <long, CD> db)
 {
     if (db == null)
     {
         return;
     }
     db.ForEach((k, v) => ChangeRelationShipCD.Add(GetEntity <TUnit>(k), v));
 }
Esempio n. 2
0
 public void ResetChangeRelationCD(TUnit other, int cd)
 {
     if (!ChangeRelationShipCD.ContainsKey(other))
     {
         ChangeRelationShipCD.Add(other, new CD());
     }
     ChangeRelationShipCD[other].Reset(cd);
 }