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