public LifeIndicator(IStateUI UI) { this.UI = UI; this.health = CreateHealth(); this.thirst = CreateThirst(); this.stamina = CreateStamina(); this.satiety = CreateSatiety(); SubscribeEvent(); }
public static HealthEndpointOptions AddIndicator(this HealthEndpointOptions opts, IHealthIndicator indicator) { Ensure.NotNull(opts, nameof(opts)); Ensure.NotNull(indicator, nameof(indicator)); opts.Indicators.Add(indicator); return(opts); }