-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
86 additions
and
88 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...com.basis.settings/Scripts/BaseSetting.cs → ...asis.settings/Scripts/BasisBaseSetting.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
18 changes: 16 additions & 2 deletions
18
Basis/Packages/com.basis.settings/Scripts/BasisSettings.asmdef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
{ | ||
"name": "BasisSettings" | ||
} | ||
"name": "BasisSettings", | ||
"rootNamespace": "", | ||
"references": [ | ||
"GUID:45c7722710e2a37438daaacbf1cd4ad1", | ||
"GUID:6055be8ebefd69e48b49212b09b47b2f" | ||
], | ||
"includePlatforms": [], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...m.basis.settings/Scripts/StringSetting.cs → ...is.settings/Scripts/BasisStringSetting.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
|
||
[Serializable] | ||
public class DataItem | ||
{ | ||
public string identifier; // Unique identifier for the data item | ||
public string value; // Value stored as a string | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
[Serializable] | ||
public class SettingsData | ||
{ | ||
// Using Dictionary for O(1) fast lookups | ||
public Dictionary<string, DataItem> itemsDictionary = new Dictionary<string, DataItem>(); | ||
|
||
// Find item by identifier with O(1) lookup time | ||
public DataItem FindItemByIdentifier(string identifier) | ||
{ | ||
itemsDictionary.TryGetValue(identifier, out var item); | ||
return item; | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
Basis/Packages/com.basis.settings/Scripts/SettingsData.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.