Exemple #1
0
    private void DBLoad_Character_Model()
    {
        DatabaseLoading("character_models", (reader) =>
        {
            switch (reader.Name)
            {
            case "character_model":
                {
                    int id      = int.Parse(reader.GetAttribute("id"));
                    string path = reader.GetAttribute("path");

                    db_character_model model = new db_character_model();
                    model.id   = id;
                    model.path = path;
                    dbCharacterModelList.Add(model);
                }
                break;
            }
        });
    }
Exemple #2
0
 //specific
 public static List <db_character_submodel> GetDBCharacterSubModelBySpecific(db_character_model model, db_character_submodel.Type type)
 {
     return(instance.dbCharacterSubModelList.FindAll(x => x.type == type && Array.IndexOf(x.models, model) != -1));
 }