Skip to content

Commit 558fce5

Browse files
committed
feat: core logic with example
feat: creation of bare bones inventory instance CRUD handling chore: restructured the item definition to create the item entry chore: migrated over inventory instance remove logic chore: added ability to save inventory instances chore: can now remove multiple inventory items chore: added inventory load logic chore: removed item entry save load for simplicity scoping reasons chore: added get all method to inventory instance chore: creation of item database ScriptableObject chore: sample inventory item database window chore: cRUD window now allows creating new SO items chore: item types are now dynamically added to the item definition window chore: table rows now print out as they are added and on init chore: item entry editor window text is now binded to the display name of the definition chore: added delete functionality for the item database chore: editor window now automatically finds and syncs extrenal database changes chore: version bump chore: inventory instance helper script to quickly create an inventory still need to write the save functionality chore: inventory helper now handles saving to the database by calling a simple method chore: added a debug print for the inventory helper component chore: unique entries can now be added and removed (partial support) chore: added a proposal for editable item entries chore: tweaks to the custom item entry proposal chore: items can now be retrieved by ID via get chore: handled several inventory get and remove edge cases for instances chore: get all now supports definition base types chore: added a new item entry base class chore: added the ability to retreive a casted definition off of the entry chore: dataResolver now works with save and load chore: moved data resolver onto definitions from the entries chore: fixed a bug where items of zero quantity got added by the helper script chore: item entries can now be swapped between inventories chore: new inventory Add event chore: added remove events chore: added category support to definitions chore: partial commit for dropdown refactor for categories chore: added category support in editor window chore: added search logic to the database window chore: custom item definitions now appear as expected in the item database add dropdown chore: categories now update when the database is edited chore: consolidated GetAll methods and added a category option chore: consolidated get, remove, and has inventory instance commands chore: added support for item entry timestamps chore: inventory instances now support sorting chore: added a new updated at field that tracks item changes chore: added updated at sorting chore: added item ID repair tool fix: database editor should no longer crash between script edits chore: added a new wizard to help create the initial item database chore: wizard now generates a sample getting started script for you chore: added menu selection screen chore: creation of sample inventory data chore: creation of sample inventory static chore: fixed a bug where the wizard would trigger on cloned project load chore: created complete feedback loop for player sample inventory chore: creation of example store chore: database now supports generating unique IDs on demand chore: swapped entry timestamps for unique indices chore: completion of save data chore: added release branches
1 parent b9f3bf6 commit 558fce5

File tree

324 files changed

+28292
-318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+28292
-318
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ UIElementsSchema/
2222

2323
# Visual Studio cache directory
2424
.vs/
25+
.idea/
2526

2627
# Gradle cache directory
2728
.gradle/
@@ -43,6 +44,7 @@ ExportedObj/
4344
*.mdb
4445
*.opendb
4546
*.VC.db
47+
.vscode/
4648

4749
# Unity3D generated meta files
4850
*.pidb.meta
@@ -51,6 +53,7 @@ ExportedObj/
5153

5254
# Unity3D Generated File On Crash Reports
5355
sysinfo.txt
56+
mono_crash*
5457

5558
# Builds
5659
*.apk

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx --no -- commitlint --edit
4+
npx --no -- commitlint --edit ${1}

.releaserc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"release": {
3+
"branches": ["master", "main"]
4+
},
25
"plugins": [
36
"@semantic-release/commit-analyzer",
47
"@semantic-release/release-notes-generator",
File renamed without changes.

Assets/Examples/Resources.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: a600bc502ed14cf5980ca274873f182a, type: 3}
13+
m_Name: ItemDatabase
14+
m_EditorClassIdentifier:
15+
_definitions:
16+
- {fileID: 11400000, guid: d3988ba3f8a2c44e6a1b98201ce75ee2, type: 2}
17+
- {fileID: 11400000, guid: 4e2438a1b36c043e587e88575d07b5ff, type: 2}
18+
- {fileID: 11400000, guid: 5e7593ddbeb614a3984bd7fcc9251406, type: 2}
19+
- {fileID: 11400000, guid: af5f8c4cbc9ca47399a535ac79bca821, type: 2}
20+
- {fileID: 11400000, guid: 253e7bd4ad4eb4c3ea08b7125e4e7372, type: 2}
21+
- {fileID: 11400000, guid: 8bf3e6d26a2462f4ab078b47e1925c4f, type: 2}
22+
- {fileID: 11400000, guid: a4f24e396c14b4438bdac660cb3768e8, type: 2}
23+
- {fileID: 11400000, guid: ab590e04be0294a76b81e859c4263afb, type: 2}
24+
- {fileID: 11400000, guid: f0a0b304827894feb81ecf23309eab1c, type: 2}
25+
- {fileID: 11400000, guid: e7bbdeb0bc0ba42d191d18e2ea1fc743, type: 2}
26+
- {fileID: 11400000, guid: 06eaa045c74964ba182ff9156b55f42e, type: 2}
27+
- {fileID: 11400000, guid: ed8218179ad2a4cff97be93b37f2445b, type: 2}
28+
- {fileID: 11400000, guid: dec899d6e9c7a44e6bdfc1ab1b33cfd6, type: 2}
29+
- {fileID: 11400000, guid: 9f77921cfc0df4d3996ebcabcf7b4f4c, type: 2}
30+
_categories:
31+
- Default
32+
- Important
33+
- Weapon
34+
- Hide
35+
- Potion
36+
- Recipe

Assets/Examples/Resources/ItemDatabase.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Examples/Shop.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Examples/Shop/Definitions.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: c7eda25e41964b24fb6b9fb1353e5966, type: 3}
13+
m_Name: AncientGem
14+
m_EditorClassIdentifier:
15+
_id: c5d02424-8615-466c-b0ad-890cd7ad1461
16+
_displayName: Ancient Gem
17+
_image: {fileID: 21300000, guid: cb17d85174959467c808508d0f3c5fa8, type: 3}
18+
_cost: 10
19+
_description: The Seraph's Tear, an ancient gem of incomparable beauty and mystique,
20+
has long been the subject of myth and legend.
21+
_category: 1

0 commit comments

Comments
 (0)