Esempio n. 1
0
        public bool AtMomentOrLater(GameMoments momentToCheck)
        {
            if (_lastCheckedMoment >= (ushort)momentToCheck)
            {
                return(true);
            }

            TryUpdateMoment();

            return(_lastCheckedMoment >= (ushort)momentToCheck);
        }
Esempio n. 2
0
 private CharNames(int id, string defaultName, Func <CommandSettings, IList <string> > wordsSelector,
                   int saveMapRecordOffset,
                   GameMoments allowNamingAfter = GameMoments.AfterBarretNamed,
                   bool included = true)
 {
     _wordsSelector   = wordsSelector;
     AllowNamingAfter = allowNamingAfter;
     Id                  = id;
     DefaultName         = defaultName;
     SaveMapRecordOffset = saveMapRecordOffset;
     if (included)
     {
         Core.Add(this);
     }
     All.Add(this);
 }