Revert "Added constants and cleaned up #weather command"

This reverts commit 2ec85304b7.
This commit is contained in:
Kinglykrab
2022-10-13 17:52:01 -04:00
parent 2ec85304b7
commit 76f4e411b6
9 changed files with 143 additions and 287 deletions
-18
View File
@@ -513,21 +513,3 @@ std::string EQ::constants::GetObjectTypeName(int object_type)
return std::string();
}
const std::map<uint8, std::string>& EQ::constants::GetWeatherTypeMap()
{
static const std::map<uint8, std::string> weather_type_map ={
{ WeatherTypes::None, "None" },
{ WeatherTypes::Raining, "Raining" },
{ WeatherTypes::Snowing, "Snowing" }
};
}
std::string EQ::constants::GetWeatherTypeName(uint8 weather_type)
{
if (EQ::ValueWithin(weather_type, WeatherTypes::None, WeatherTypes::Snowing)) {
return EQ::constants::GetWeatherTypeMap().find(weather_type)->second;
}
return std::string();
}
-9
View File
@@ -312,12 +312,6 @@ namespace EQ
NoDeposit
};
enum WeatherTypes : uint8 {
None,
Raining,
Snowing
};
const char *GetStanceName(StanceType stance_type);
int ConvertStanceTypeToIndex(StanceType stance_type);
@@ -351,9 +345,6 @@ namespace EQ
extern const std::map<int, std::string>& GetObjectTypeMap();
std::string GetObjectTypeName(int object_type);
extern const std::map<uint8, std::string>& GetWeatherTypeMap();
std::string GetWeatherTypeName(uint8 weather_type);
const int STANCE_TYPE_FIRST = stancePassive;
const int STANCE_TYPE_LAST = stanceBurnAE;
const int STANCE_TYPE_COUNT = stanceBurnAE;