Skip to content

Commit

Permalink
Initial commit of first PoC version
Browse files Browse the repository at this point in the history
  • Loading branch information
LeTarrask committed Jan 5, 2024
1 parent 97266c3 commit d169895
Show file tree
Hide file tree
Showing 8 changed files with 9,050 additions and 29 deletions.
56 changes: 52 additions & 4 deletions Dungeon Dwellers.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,26 @@

/* Begin PBXBuildFile section */
791FF2C72B4880AC006073D4 /* Dungeon_DwellersApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 791FF2C62B4880AC006073D4 /* Dungeon_DwellersApp.swift */; };
791FF2C92B4880AC006073D4 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 791FF2C82B4880AC006073D4 /* ContentView.swift */; };
791FF2CB2B4880AD006073D4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 791FF2CA2B4880AD006073D4 /* Assets.xcassets */; };
791FF2CF2B4880AD006073D4 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 791FF2CE2B4880AD006073D4 /* Preview Assets.xcassets */; };
791FF2DE2B4880BA006073D4 /* MonsterListViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 791FF2D72B4880BA006073D4 /* MonsterListViewModel.swift */; };
791FF2DF2B4880BA006073D4 /* Monster.swift in Sources */ = {isa = PBXBuildFile; fileRef = 791FF2D92B4880BA006073D4 /* Monster.swift */; };
791FF2E02B4880BA006073D4 /* srd_5e_monsters.json in Resources */ = {isa = PBXBuildFile; fileRef = 791FF2DA2B4880BA006073D4 /* srd_5e_monsters.json */; };
791FF2E12B4880BA006073D4 /* MonsterListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 791FF2DC2B4880BA006073D4 /* MonsterListView.swift */; };
791FF2E22B4880BA006073D4 /* MonsterDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 791FF2DD2B4880BA006073D4 /* MonsterDetailView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
791FF2C32B4880AC006073D4 /* Dungeon Dwellers.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Dungeon Dwellers.app"; sourceTree = BUILT_PRODUCTS_DIR; };
791FF2C62B4880AC006073D4 /* Dungeon_DwellersApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Dungeon_DwellersApp.swift; sourceTree = "<group>"; };
791FF2C82B4880AC006073D4 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
791FF2CA2B4880AD006073D4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
791FF2CC2B4880AD006073D4 /* Dungeon_Dwellers.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Dungeon_Dwellers.entitlements; sourceTree = "<group>"; };
791FF2CE2B4880AD006073D4 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
791FF2D72B4880BA006073D4 /* MonsterListViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MonsterListViewModel.swift; sourceTree = "<group>"; };
791FF2D92B4880BA006073D4 /* Monster.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Monster.swift; sourceTree = "<group>"; };
791FF2DA2B4880BA006073D4 /* srd_5e_monsters.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = srd_5e_monsters.json; sourceTree = "<group>"; };
791FF2DC2B4880BA006073D4 /* MonsterListView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MonsterListView.swift; sourceTree = "<group>"; };
791FF2DD2B4880BA006073D4 /* MonsterDetailView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MonsterDetailView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -52,8 +60,8 @@
791FF2C52B4880AC006073D4 /* Dungeon Dwellers */ = {
isa = PBXGroup;
children = (
791FF2D52B4880BA006073D4 /* Monster Manual */,
791FF2C62B4880AC006073D4 /* Dungeon_DwellersApp.swift */,
791FF2C82B4880AC006073D4 /* ContentView.swift */,
791FF2CA2B4880AD006073D4 /* Assets.xcassets */,
791FF2CC2B4880AD006073D4 /* Dungeon_Dwellers.entitlements */,
791FF2CD2B4880AD006073D4 /* Preview Content */,
Expand All @@ -69,6 +77,42 @@
path = "Preview Content";
sourceTree = "<group>";
};
791FF2D52B4880BA006073D4 /* Monster Manual */ = {
isa = PBXGroup;
children = (
791FF2D62B4880BA006073D4 /* ViewModel */,
791FF2D82B4880BA006073D4 /* Model */,
791FF2DB2B4880BA006073D4 /* Views */,
);
path = "Monster Manual";
sourceTree = "<group>";
};
791FF2D62B4880BA006073D4 /* ViewModel */ = {
isa = PBXGroup;
children = (
791FF2D72B4880BA006073D4 /* MonsterListViewModel.swift */,
);
path = ViewModel;
sourceTree = "<group>";
};
791FF2D82B4880BA006073D4 /* Model */ = {
isa = PBXGroup;
children = (
791FF2D92B4880BA006073D4 /* Monster.swift */,
791FF2DA2B4880BA006073D4 /* srd_5e_monsters.json */,
);
path = Model;
sourceTree = "<group>";
};
791FF2DB2B4880BA006073D4 /* Views */ = {
isa = PBXGroup;
children = (
791FF2DC2B4880BA006073D4 /* MonsterListView.swift */,
791FF2DD2B4880BA006073D4 /* MonsterDetailView.swift */,
);
path = Views;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -129,6 +173,7 @@
files = (
791FF2CF2B4880AD006073D4 /* Preview Assets.xcassets in Resources */,
791FF2CB2B4880AD006073D4 /* Assets.xcassets in Resources */,
791FF2E02B4880BA006073D4 /* srd_5e_monsters.json in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -139,8 +184,11 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
791FF2C92B4880AC006073D4 /* ContentView.swift in Sources */,
791FF2C72B4880AC006073D4 /* Dungeon_DwellersApp.swift in Sources */,
791FF2DF2B4880BA006073D4 /* Monster.swift in Sources */,
791FF2DE2B4880BA006073D4 /* MonsterListViewModel.swift in Sources */,
791FF2E12B4880BA006073D4 /* MonsterListView.swift in Sources */,
791FF2E22B4880BA006073D4 /* MonsterDetailView.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
24 changes: 0 additions & 24 deletions Dungeon Dwellers/ContentView.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Dungeon Dwellers/Dungeon_DwellersApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import SwiftUI
struct Dungeon_DwellersApp: App {
var body: some Scene {
WindowGroup {
ContentView()
MonsterListView()
}
}
}
48 changes: 48 additions & 0 deletions Dungeon Dwellers/Monster Manual/Model/Monster.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
//
// Monster.swift
// Dungeon Dwellers
//
// Created by Alex Luna on 05/01/2024.
//

import Foundation

// MARK: - Monster
struct Monster: Codable, Hashable {
let name, meta, armorClass, hitPoints: String
let speed, str, strMod, dex: String
let dexMod, con, conMod, int: String
let intMod, wis, wisMod, cha, chaMod: String
let savingThrows, skills, senses: String?
let languages, challenge, traits, actions: String?
let legendaryActions: String?
let imgURL: String?

enum CodingKeys: String, CodingKey {
case name, meta
case armorClass = "Armor Class"
case hitPoints = "Hit Points"
case speed = "Speed"
case str = "STR"
case strMod = "STR_mod"
case dex = "DEX"
case dexMod = "DEX_mod"
case con = "CON"
case conMod = "CON_mod"
case int = "INT"
case intMod = "INT_mod"
case wis = "WIS"
case wisMod = "WIS_mod"
case cha = "CHA"
case chaMod = "CHA_mod"
case savingThrows = "Saving Throws"
case skills = "Skills"
case senses = "Senses"
case languages = "Languages"
case challenge = "Challenge"
case traits = "Traits"
case actions = "Actions"
case legendaryActions = "Legendary Actions"
case imgURL = "img_url"
}
}
Loading

0 comments on commit d169895

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy