protected T CreateStat <T>(Base_Stat_Type stat_Type) where T : Base_Stat { T stat = System.Activator.CreateInstance <T>(); StatDict.Add(stat_Type, stat); return(stat); }
public Base_Stat GetStat(Base_Stat_Type stat_Type) { if (ContainStat(stat_Type)) { return(StatDict[stat_Type]); } return(null); }
protected T CreateOrGetStat <T>(Base_Stat_Type stat_Type) where T : Base_Stat { T stat = GetStat <T>(stat_Type); if (stat == null) { stat = CreateStat <T>(stat_Type); } return(stat); }
public T GetStat <T>(Base_Stat_Type type) where T : Base_Stat { return(GetStat(type) as T); }
public bool ContainStat(Base_Stat_Type stat_Type) { return(StatDict.ContainsKey(stat_Type)); }