public Status(StatusID status_id, MultiLanguageString name, bool kindan_enabled, Func <StatusID, IDictionary <GradeID, MateriaID> > materia_ids_getter)
 {
     if (status_id == StatusID.None)
     {
         throw new ArgumentException();
     }
     if (materia_ids_getter == null)
     {
         throw new ArgumentNullException();
     }
     StatusID            = status_id;
     Name                = name;
     KindanEnabled       = kindan_enabled;
     _materia_ids_getter = materia_ids_getter;
     _materia_ids        = null;
 }
Beispiel #2
0
 public Grade(GradeID grade_id, MultiLanguageString name, IEnumerable <double> success_rate_nq, IEnumerable <double> success_rate_hq)
 {
     if (grade_id == GradeID.None)
     {
         throw new ArgumentException();
     }
     if (success_rate_nq == null)
     {
         throw new ArgumentNullException();
     }
     if (success_rate_hq == null)
     {
         throw new ArgumentNullException();
     }
     GradeID       = grade_id;
     Name          = name;
     SuccessRateNQ = success_rate_nq.ToArray();
     SuccessRateHQ = success_rate_hq.ToArray();
 }
 public Item(ItemID item_id, MultiLanguageString name, GlobalID global_item_id, string official_site_db_id)
 {
     if (item_id == ItemID.None)
     {
         throw new ArgumentException();
     }
     if (name == null)
     {
         throw new ArgumentNullException();
     }
     if (global_item_id == null)
     {
         throw new ArgumentNullException();
     }
     ItemID                 = item_id;
     Name                   = name;
     GlobalItemID           = global_item_id;
     OfficialSiteDatabaseID = official_site_db_id;
 }