After a successfull login I get a summary of the changes in the world (new plants/animals) which I want to use to post this into our discord channel.
For this I guess I can use [ICODE]Eco.Stats.OrganismStats.GetPopulationStats()[/ICODE] is this correct?
Aftet that I want to iterate over this with a list and create a string for that to push it to discord, but currently the string is always empty. Am I missing something?
C#
public static string GetEnviromentStatsString()
{
List<Stats.PopulationStatManager> stats = GetEnviromentStats();
string s = "";
stats.ForEach(stat =>
{
string line = "Type: " + stat.DisplayName + " | Units: " + stat.Unit + '\n';
s += line;
Logger.Info("GetEnviromentStatsString: " + line);
});
return s;
}
Display More