private void LoadDatabases() { List <IDatabase> databases = GameCreatorUtilities.FindAssetsByType <IDatabase>(); int databasesCount = databases.Count; DATABASES = new List <DatabaseInfo>(); for (int i = 0; i < databasesCount; ++i) { DATABASES.Add(new DatabaseInfo(databases[i])); } DATABASES.Sort(); }
private void LoadDatabases() { List <IDatabase> databases = GameCreatorUtilities.FindAssetsByType <IDatabase>(); int databasesCount = databases.Count; DATABASES = new List <DatabaseInfo>(); for (int i = 0; i < databasesCount; ++i) { DATABASES.Add(new DatabaseInfo(databases[i])); } DATABASES.Sort((DatabaseInfo x, DatabaseInfo y) => { int valueX = x.data.GetSidebarPriority(); int valueY = y.data.GetSidebarPriority(); return(valueX.CompareTo(valueY)); }); }