Skip to content

Game.UI.InGame.PrefabUISystem+ComponentIntRangePropertyBinder`1

Assembly: Game
Namespace: Game.UI.InGame

Type: class public

Base: Game.UI.InGame.PrefabUISystem+IntRangePropertyBinder
Implements: Game.UI.InGame.PrefabUISystem+IPrefabPropertyBinder

Code

public class ComponentIntRangePropertyBinder<T> : Game.UI.InGame.PrefabUISystem+IntRangePropertyBinder, Game.UI.InGame.PrefabUISystem+IPrefabPropertyBinder
{
    private readonly System.Func<T, System.Int32> m_MinGetter;
    private readonly System.Func<T, System.Int32> m_MaxGetter;

    public ComponentIntRangePropertyBinder`1(System.String labelId, System.String unit, System.Func<T, System.Int32> minGetter, System.Func<T, System.Int32> maxGetter, System.Boolean signed, System.String icon, System.String valueIcon);

    public virtual System.Int32 GetMaxValue(Unity.Entities.EntityManager entityManager, Unity.Entities.Entity entity);
    public virtual System.Int32 GetMinValue(Unity.Entities.EntityManager entityManager, Unity.Entities.Entity entity);
    public virtual System.Boolean Matches(Unity.Entities.EntityManager entityManager, Unity.Entities.Entity entity);
}

Fields

  • private readonly System.Func<T, System.Int32> m_MinGetter
private readonly System.Func<T, System.Int32> m_MinGetter;
  • private readonly System.Func<T, System.Int32> m_MaxGetter
private readonly System.Func<T, System.Int32> m_MaxGetter;

Constructors

  • public ComponentIntRangePropertyBinder1(System.String labelId, System.String unit, System.Func minGetter, System.Func maxGetter, System.Boolean signed = False, System.String icon = null, System.String valueIcon = null)`
public ComponentIntRangePropertyBinder`1(System.String labelId, System.String unit, System.Func<T, System.Int32> minGetter, System.Func<T, System.Int32> maxGetter, System.Boolean signed, System.String icon, System.String valueIcon);

Methods

  • public virtual GetMaxValue(Unity.Entities.EntityManager entityManager, Unity.Entities.Entity entity) : System.Int32
public virtual System.Int32 GetMaxValue(Unity.Entities.EntityManager entityManager, Unity.Entities.Entity entity);
  • public virtual GetMinValue(Unity.Entities.EntityManager entityManager, Unity.Entities.Entity entity) : System.Int32
public virtual System.Int32 GetMinValue(Unity.Entities.EntityManager entityManager, Unity.Entities.Entity entity);
  • public virtual Matches(Unity.Entities.EntityManager entityManager, Unity.Entities.Entity entity) : System.Boolean
public virtual System.Boolean Matches(Unity.Entities.EntityManager entityManager, Unity.Entities.Entity entity);