public static Actor GetActorData(this DataHash <Actor> dataHash, string type) { if (dataHash.ContainsKey(type)) { return(dataHash.GetUnit(type)); } return(sDefaultActor); }
public static Recipe GetRecipeData(this DataHash <Recipe> dataHash, string source) { if (dataHash.ContainsKey(source)) { return(dataHash.GetUnit(source)); } return(null); }