Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit d15ff53

Browse files
author
serg.morozov
committed
fix: SODatabaseInternal back to publick
1 parent 0433906 commit d15ff53

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "ExamplesAssembly",
3+
"rootNamespace": "",
4+
"references": [
5+
"GUID:2aa9b8d1d77cfe24f852a13b837e9c06"
6+
],
7+
"includePlatforms": [],
8+
"excludePlatforms": [],
9+
"allowUnsafeCode": false,
10+
"overrideReferences": false,
11+
"precompiledReferences": [],
12+
"autoReferenced": true,
13+
"defineConstraints": [],
14+
"versionDefines": [],
15+
"noEngineReferences": false
16+
}

Assets/Example/ExamplesAssembly.asmdef.meta

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

Assets/com.nuclearband.sodatabase/Runtime/SODatabaseUtilities.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88

99
namespace Nuclear.SODatabase
1010
{
11-
internal static class SODatabaseUtilities
11+
public static class SODatabaseUtilities
1212
{
1313
// ReSharper disable once MemberCanBePrivate.Global
14-
internal static T GetModelForEdit<T>(string path) where T : DataNode
14+
public static T GetModelForEdit<T>(string path) where T : DataNode
1515
{
1616
return AssetDatabase.LoadAssetAtPath<T>(SODatabaseSettings.Path + path + ".asset") ??
1717
throw new ArgumentException($"Could not get model at path {path}");
1818
}
1919

20-
internal static List<T> GetModelsForEdit<T>(string path) where T : DataNode
20+
public static List<T> GetModelsForEdit<T>(string path) where T : DataNode
2121
{
2222
var searchPath = (SODatabaseSettings.Path + path).TrimEnd('/');
2323
var modelGUIDs = AssetDatabase.FindAssets($"t:{typeof(T).Name}",new [] {searchPath});
@@ -26,7 +26,7 @@ internal static List<T> GetModelsForEdit<T>(string path) where T : DataNode
2626
}
2727

2828
// ReSharper disable once MemberCanBePrivate.Global
29-
internal static void CreateFolder(string path)
29+
public static void CreateFolder(string path)
3030
{
3131
AssetDatabase.Refresh();
3232
var folders = path.Split('/');
@@ -45,7 +45,7 @@ internal static void CreateFolder(string path)
4545
AssetDatabase.SaveAssets();
4646
}
4747

48-
internal static T CreateModel<T>(string path, string name) where T : DataNode
48+
public static T CreateModel<T>(string path, string name) where T : DataNode
4949
{
5050
try
5151
{
@@ -67,7 +67,7 @@ internal static T CreateModel<T>(string path, string name) where T : DataNode
6767
return obj;
6868
}
6969

70-
internal static void RemoveFolder(string path)
70+
public static void RemoveFolder(string path)
7171
{
7272
AssetDatabase.DeleteAsset(SODatabaseSettings.Path + "/" + path);
7373
AssetDatabase.Refresh();

0 commit comments

Comments
 (0)