Skip to content

Commit

Permalink
GameReferencedKeyedDialog should be GameReferenceKeyedDictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
ekolis committed Dec 24, 2024
1 parent 06b5c67 commit e6a1386
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ public class CargoDelta : IPromotable
{
public CargoDelta()
{
RacePopulation = new GameReferenceKeyedDialog<Race, long?>();
RacePopulation = new GameReferenceKeyedDictionary<Race, long?>();
AllPopulation = false;
AnyPopulation = 0L;
Units = new GameReferenceSet<IUnit>();
UnitDesignTonnage = new GameReferenceKeyedDialog<IDesign<IUnit>, int?>();
UnitDesignTonnage = new GameReferenceKeyedDictionary<IDesign<IUnit>, int?>();
UnitRoleTonnage = new SafeDictionary<string, int?>();
UnitTypeTonnage = new SafeDictionary<VehicleTypes, int?>();
}
Expand Down Expand Up @@ -65,8 +65,8 @@ public int? EstimatedTonnage
}
}

public GameReferenceKeyedDialog<Race, long?> RacePopulation { get; private set; }
public GameReferenceKeyedDialog<IDesign<IUnit>, int?> UnitDesignTonnage { get; private set; }
public GameReferenceKeyedDictionary<Race, long?> RacePopulation { get; private set; }
public GameReferenceKeyedDictionary<IDesign<IUnit>, int?> UnitDesignTonnage { get; private set; }
public SafeDictionary<string, int?> UnitRoleTonnage { get; private set; }
public GameReferenceSet<IUnit> Units { get; private set; }
public SafeDictionary<VehicleTypes, int?> UnitTypeTonnage { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace FrEee.Objects.GameState;

public class GameReferenceKeyedDialog<TKey, TValue> : ReferenceKeyedDictionary<long, GameReference<TKey>, TKey, TValue>
public class GameReferenceKeyedDictionary<TKey, TValue> : ReferenceKeyedDictionary<long, GameReference<TKey>, TKey, TValue>
where TKey : IReferrable
{
private SafeDictionary<long, TKey> dict = new SafeDictionary<long, TKey>();
Expand Down

0 comments on commit e6a1386

Please sign in to comment.