Skip to content

Commit d3f050e

Browse files
committed
Loot editor stub
1 parent f7a43ed commit d3f050e

File tree

4 files changed

+58
-3
lines changed

4 files changed

+58
-3
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System.Collections.ObjectModel;
2+
using WDE.Common;
3+
4+
namespace WDE.LootEditor.Documents;
5+
6+
public class LootSolutionItem : ISolutionItem
7+
{
8+
public LootSolutionItem(uint entry)
9+
{
10+
11+
}
12+
13+
public bool IsContainer => false;
14+
public ObservableCollection<ISolutionItem>? Items => null;
15+
public string? ExtraId => null;
16+
public bool IsExportable { get; set; }
17+
public ISolutionItem Clone()
18+
{
19+
return new LootSolutionItem(0);
20+
}
21+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using WDE.Module;
2+
3+
namespace WDE.LootEditor;
4+
5+
public class LootEditorModule : ModuleBase
6+
{
7+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net6.0</TargetFramework>
4+
<Configurations>Debug;Release</Configurations>
5+
<Platforms>AnyCPU</Platforms>
6+
<Nullable>enable</Nullable>
7+
<WarningsAsErrors>nullable</WarningsAsErrors>
8+
</PropertyGroup>
9+
<ItemGroup>
10+
<ProjectReference Include="..\..\WDE.Common.Avalonia\WDE.Common.Avalonia.csproj" />
11+
<ProjectReference Include="..\..\WDE.MVVM\WDE.MVVM.csproj" />
12+
<ProjectReference Include="..\..\WoWDatabaseEditor.Common\WDE.Common\WDE.Common.csproj" />
13+
</ItemGroup>
14+
<ItemGroup>
15+
<PackageReference Include="FuzzySharp" Version="2.0.2" />
16+
</ItemGroup>
17+
<ItemGroup>
18+
<Folder Include="Queries" />
19+
<Folder Include="ViewModels" />
20+
<Folder Include="Views" />
21+
</ItemGroup>
22+
<Import Project="..\..\Avalonia.props" />
23+
<PropertyGroup>
24+
<OutputPath>..\..\bin\$(Configuration)\</OutputPath>
25+
</PropertyGroup>
26+
<Import Project="..\..\Module.props" />
27+
</Project>

test/database_test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ for index in ${!URLs[*]}; do
4040

4141
for i in sql/updates/world/${UPDATEs[$index]}/*.sql
4242
do
43-
"${MYSQL_PATH}" -u ${USER} -p${PASSWORD} temp_CI < ${i}
43+
"${MYSQL_PATH}" -u ${USER} -p${PASSWORD} temp_CI < "${i}"
4444
done
4545
else
4646
for i in data/sql/base/db_world/*.sql
4747
do
48-
"${MYSQL_PATH}" -u ${USER} -p${PASSWORD} temp_CI < ${i}
48+
"${MYSQL_PATH}" -u ${USER} -p${PASSWORD} temp_CI < "${i}"
4949
done
5050

5151
for i in data/sql/updates/db_world/*.sql
5252
do
53-
"${MYSQL_PATH}" -u ${USER} -p${PASSWORD} temp_CI < ${i}
53+
"${MYSQL_PATH}" -u ${USER} -p${PASSWORD} temp_CI < "${i}"
5454
done
5555
fi
5656

0 commit comments

Comments
 (0)