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