Exemple #1
0
 public static IList <EntityProperty> GetProperties(this EntityType key)
 {
     if (!TypePropertiesLookup.TryGetValue(key, out var values))
     {
         throw new NotImplementedException($"The given key '{key}' could not be found");
     }
     return(values);
 }
Exemple #2
0
 public static bool HasProperty(this EntityType key, O.M.A.Games.GDOrganizer.Generated.EntityProperty value)
 {
     if (!TypePropertiesLookup.TryGetValue(key, out var values))
     {
         throw new NotImplementedException($"The given key '{key}' could not be found");
     }
     return(values.Any(p => p == value));
 }