public static void ReloadTankDefs()
{
tankTypes.Clear();
// Structural tank type is hard coded
tankTypes.Add(structuralTankName, StructuralTankType);
foreach (var node in GameDatabase.Instance.GetConfigNodes("B9_TANK_TYPE"))
{
TankType t = new TankType();
t.Load(node);
if (tankTypes.ContainsKey(t.tankName))
{
Debug.LogError($"B9TankSettings: The tank type {t.tankName} already exists");
continue;
}
tankTypes.Add(t.tankName, t);
Debug.Log($"B9TankSettings: registered tank type {t.tankName}");
}
LoadedTankDefs = true;
}