public bool AtMomentOrLater(GameMoments momentToCheck) { if (_lastCheckedMoment >= (ushort)momentToCheck) { return(true); } TryUpdateMoment(); return(_lastCheckedMoment >= (ushort)momentToCheck); }
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); }