Provides a set of .NET Standard 2.0 APIs to use language integrated query to analyze the data exported by the Itchy Bear exporter.
Check out the nuget package
The entry point for query is Itchy Bear Snapshot. After loading the snapshot, query the data in the snapshot. The following code uses Linq's Count
function to count the number of souls.
VB
Dim 快照 = 痒痒熊快照.加载Json文件( "测试数据.json" )
Console.WriteLine(快照.数据.御魂.Count)
The code produces the following output
4665
The following code counts the number of each type of soul.
VB
Dim 快照 = 痒痒熊快照.加载Json文件( "测试数据.json" )
Dim eqId = Aggregate 御魂 In 快照.数据.御魂
Group By 御魂.名称 Into Group
Select 名称, Group .Count Into ToArray
For Each eq In eqId
Console.WriteLine(eq)
Next
The code produces output like the following
{ 名称 = 阴摩罗, Count = 131 }
{ 名称 = 心眼, Count = 182 }
{ 名称 = 破势, Count = 266 }
{ 名称 = 雪幽魂, Count = 123 }
...
The following code discards the lame five-star souls and those without the combination of critical hit + critical damage, and compares the number of five-star souls before and after discarding
VB
' 加载快照
Dim 快照 = 痒痒熊快照.加载Json文件( "测试数据.json" )
' 整理前五星御魂数量
Dim 五星御魂 =
From s In 快照.数据.御魂 Where s.星级 = 5 AndAlso s.已弃置 = False
Console.WriteLine( $ "整理前五星御魂数量: {五星御魂.Count}" )
' 整理御魂
With 快照.数据.御魂.创建御魂整理
.星级.选择( 5 )
.副属性条数 = 副属性条数条件.两条
.全选.弃置
.副属性条数 = 副属性条数条件.不限
.副属性没有.选择(御魂属性类型.暴击伤害)
.全选.弃置
.副属性没有.改为(御魂属性类型.暴击)
.全选.弃置
End With
' 整理后五星御魂数量
Console.WriteLine( $ "整理后五星御魂数量: {五星御魂.Count}" )
The code produces the following output
整理前五星御魂数量: 1033
整理后五星御魂数量: 321
Located in the "Demo" folder, the order has no meaning.
Use Qi Lao's third anniversary version of the soul sorting plan to clean up the souls, and count the number of six-star souls before and after the cleanup.
name | Runnable platforms | Technology used |
---|---|---|
Test console program | Windows, Linux, Mac | VB |
Test website access | Web | C#, Blazor |
Demo WPF program download | Windows | VB, WPF |
Note: Windows refers to Windows 10, Windows 8.1, Windows 7 sp1 or their corresponding Windows Server systems.