Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
donkeyProgramming committed Nov 24, 2024
1 parent c47aef4 commit f5bbb30
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Shared/SharedCore/PackFiles/PackFileContainerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Shared.Core.PackFiles
{
public interface IPackFileContainerLoader
{
PackFileContainer Load(string packFileSystemPath);
PackFileContainer? Load(string packFileSystemPath);
PackFileContainer? LoadAllCaFiles(GameTypeEnum gameEnum);
PackFileContainer LoadSystemFolderAsPackFileContainer(string packFileSystemPath);
}
Expand Down Expand Up @@ -58,7 +58,7 @@ void AddFolderContentToPackFile(PackFileContainer container, string folderPath,
AddFolderContentToPackFile(container, folder, rootPath);
}

public PackFileContainer Load(string packFileSystemPath)
public PackFileContainer? Load(string packFileSystemPath)
{
try
{
Expand Down
24 changes: 0 additions & 24 deletions Shared/SharedCore/ToolCreation/EditorDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,9 @@

namespace Shared.Core.ToolCreation
{
public class EditorInfo
{
public record ExtentionInfo(string Extention, int Priority);

public EditorInfo(EditorEnums editorEnum, Type view, Type viewModel)
{
EditorEnum = editorEnum;
View = view;
ViewModel = viewModel;
}
public List<ExtentionInfo> Extensions { get; set; } = new List<ExtentionInfo>();
public List<string> FolderRules { get; set; } = new List<string>();
public string ToolbarName { get; set; } = "";
public bool AddToolbarButton { get; set; } = false;
public bool IsToolbarButtonEnabled { get; set; } = false;
public EditorEnums EditorEnum { get; }
public Type View { get; }
public Type ViewModel { get; }
}


public static class EditorPriorites
{
public static int Low => 0;
public static int Default => 50;
public static int High => 100;
}

public interface IEditorDatabase
{
Expand Down
27 changes: 27 additions & 0 deletions Shared/SharedCore/ToolCreation/EditorInfoBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
namespace Shared.Core.ToolCreation
{
public class EditorInfo
{
public record ExtentionInfo(string Extention, int Priority);

public EditorInfo(EditorEnums editorEnum, Type view, Type viewModel)
{
EditorEnum = editorEnum;
View = view;
ViewModel = viewModel;
}
public List<ExtentionInfo> Extensions { get; set; } = new List<ExtentionInfo>();
public List<string> FolderRules { get; set; } = new List<string>();
public string ToolbarName { get; set; } = "";
public bool AddToolbarButton { get; set; } = false;
public bool IsToolbarButtonEnabled { get; set; } = false;
public EditorEnums EditorEnum { get; }
public Type View { get; }
public Type ViewModel { get; }
}

public static class EditorPriorites
{
public static int Low => 0;
public static int Default => 50;
public static int High => 100;
}

public class EditorInfoBuilder
{
protected EditorInfo _instance;
Expand Down

0 comments on commit f5bbb30

Please sign in to comment.