Exemple #1
0
 public int this[MetaValued <T> key]
Exemple #2
0
 protected override List <InlineKeyboardButton> GetRowForElement(ISession session, MetaValued <T> element) =>
Exemple #3
0
        public void DecreaseVar(ISession session, MetaValued <T> variable)
        {
            MetaValuedContainer <T> container = session.Vars.GetVar <MetaValuedContainer <T> >(VarName);

            container.Add(variable, -1);
        }
Exemple #4
0
 private bool MoreThanZero(ISession session, MetaValued <T> variable) =>
 session.Vars.GetVar <MetaValuedContainer <T> >(VarName).ContainsKey(variable);
Exemple #5
0
 public void SetVar(ISession session, MetaValued <T> variable) => IncreaseVar(session, variable);