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

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