Creates initial app database class and adds minimal DTO support for monsters.
This commit is contained in:
@@ -43,7 +43,7 @@ public class MonsterFragment extends Fragment {
|
||||
// TODO: remove this block make the monster ID a parameter to the view and get the monster from saved data (sqlite)
|
||||
Monster monster = new Monster();
|
||||
// Name
|
||||
monster.setName("Pixie");
|
||||
monster.name ="Pixie";
|
||||
// Meta
|
||||
monster.setSize("tiny");
|
||||
monster.setType("fey");
|
||||
|
||||
@@ -167,7 +167,7 @@ public class MonsterViewModel extends ViewModel {
|
||||
mIntelligence.setValue(monster.getIntelligenceDescription());
|
||||
mLanguages.setValue(mMonster.getLanguagesDescription());
|
||||
mMeta.setValue(mMonster.getMeta());
|
||||
mName.setValue(mMonster.getName());
|
||||
mName.setValue(mMonster.name);
|
||||
mSavingThrows.setValue(monster.getSavingThrowsDescription());
|
||||
mSenses.setValue(monster.getSensesDescription());
|
||||
mSkills.setValue(monster.getSkillsDescription());
|
||||
|
||||
Reference in New Issue
Block a user