Skip to main content

PopulationAnalytics

A static class in Root.Township, Alta.Populations.

Logs population changes at trace level, and raises the PopulationModified console event for spawns and losses.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerClass logger.

Methods​

MemberWhat it is
static void SendRecord(string populationName, string chunkIdentifier, int currentPopulation, int maxPopulation, PopulationAction action)Logs a population's name, chunk, current and max size and the action. The sample overload also raises PopulationModified for Spawned and Lost.
static void SendRecord(PopulationSample sample, PopulationAction action, UserInfo killer = null)Logs a population's name, chunk, current and max size and the action. The sample overload also raises PopulationModified for Spawned and Lost.