/// <summary> /// Checks if there is a prefab for the given land plot ID /// </summary> /// <param name="dir">The lookup director</param> /// <param name="id">The ID to check</param> public static bool HasPlotPrefab(this LookupDirector dir, LandPlot.Id id) { return(dir.GetPrivateField <Dictionary <LandPlot.Id, GameObject> >("plotPrefabDict").ContainsKey(id)); }
/// <summary> /// Checks if there is a prefab for the given identifiable ID /// </summary> /// <param name="dir">The lookup director</param> /// <param name="id">The ID to check</param> public static bool HasPrefab(this LookupDirector dir, Identifiable.Id id) { return(dir.GetPrivateField <Dictionary <Identifiable.Id, GameObject> >("identifiablePrefabDict").ContainsKey(id)); }