示例#1
0
 public LifeIndicator(IStateUI UI)
 {
     this.UI      = UI;
     this.health  = CreateHealth();
     this.thirst  = CreateThirst();
     this.stamina = CreateStamina();
     this.satiety = CreateSatiety();
     SubscribeEvent();
 }
示例#2
0
        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);
        }