-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/clear-inventory
- Loading branch information
Showing
648 changed files
with
33,853 additions
and
9,337 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 @@ | ||
Copyright © 2025 DGP Studio, All Rights Reserved. |
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-3.82 KB
(92%)
src/Snap.Hutao/Snap.Hutao/Assets/Square150x150Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-7.89 KB
(88%)
src/Snap.Hutao/Snap.Hutao/Assets/Square150x150Logo.scale-125.png
Oops, something went wrong.
Binary file modified
BIN
-12.6 KB
(86%)
src/Snap.Hutao/Snap.Hutao/Assets/Square150x150Logo.scale-150.png
Oops, something went wrong.
Binary file modified
BIN
-26 KB
(83%)
src/Snap.Hutao/Snap.Hutao/Assets/Square150x150Logo.scale-200.png
Oops, something went wrong.
Binary file modified
BIN
-131 KB
(73%)
src/Snap.Hutao/Snap.Hutao/Assets/Square150x150Logo.scale-400.png
Oops, something went wrong.
Binary file modified
BIN
+5 Bytes
(100%)
...Hutao/Snap.Hutao/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
...Hutao/Snap.Hutao/Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png
Oops, something went wrong.
Binary file modified
BIN
-17 KB
(85%)
...utao/Snap.Hutao/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
...Hutao/Snap.Hutao/Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png
Oops, something went wrong.
Binary file modified
BIN
-149 Bytes
(98%)
...Hutao/Snap.Hutao/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png
Oops, something went wrong.
Binary file modified
BIN
+5 Bytes
(100%)
...Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.altform-unplated_targetsize-16.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
...Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.altform-unplated_targetsize-24.png
Oops, something went wrong.
Binary file modified
BIN
-17 KB
(85%)
...nap.Hutao/Snap.Hutao/Assets/Square44x44Logo.altform-unplated_targetsize-256.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
...Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.altform-unplated_targetsize-32.png
Oops, something went wrong.
Binary file modified
BIN
-149 Bytes
(98%)
...Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.altform-unplated_targetsize-48.png
Oops, something went wrong.
Binary file modified
BIN
-129 Bytes
(98%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-146 Bytes
(98%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.scale-125.png
Oops, something went wrong.
Binary file modified
BIN
-422 Bytes
(96%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.scale-150.png
Oops, something went wrong.
Binary file modified
BIN
-692 Bytes
(96%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.scale-200.png
Oops, something went wrong.
Binary file modified
BIN
-6.67 KB
(89%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.scale-400.png
Oops, something went wrong.
Binary file modified
BIN
+5 Bytes
(100%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.targetsize-16.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.targetsize-24.png
Oops, something went wrong.
Binary file modified
BIN
-17 KB
(85%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.targetsize-256.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.targetsize-32.png
Oops, something went wrong.
Binary file modified
BIN
-149 Bytes
(98%)
src/Snap.Hutao/Snap.Hutao/Assets/Square44x44Logo.targetsize-48.png
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-3.6 KB
(93%)
src/Snap.Hutao/Snap.Hutao/Assets/Wide310x150Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-7.46 KB
(90%)
src/Snap.Hutao/Snap.Hutao/Assets/Wide310x150Logo.scale-125.png
Oops, something went wrong.
Binary file modified
BIN
-12.3 KB
(87%)
src/Snap.Hutao/Snap.Hutao/Assets/Wide310x150Logo.scale-150.png
Oops, something went wrong.
Binary file modified
BIN
-25.5 KB
(84%)
src/Snap.Hutao/Snap.Hutao/Assets/Wide310x150Logo.scale-200.png
Oops, something went wrong.
Binary file modified
BIN
-131 KB
(74%)
src/Snap.Hutao/Snap.Hutao/Assets/Wide310x150Logo.scale-400.png
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
namespace Snap.Hutao.Core.Abstraction; | ||
|
||
internal interface ITypeName | ||
{ | ||
string TypeName { get; } | ||
} |
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
37 changes: 37 additions & 0 deletions
37
src/Snap.Hutao/Snap.Hutao/Core/Collection/ImmutableArrayEnumeratorNoThrow.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using System.Collections; | ||
using System.Collections.Immutable; | ||
|
||
namespace Snap.Hutao.Core.Collection; | ||
|
||
internal sealed class ImmutableArrayEnumeratorNoThrow<T> : IEnumerator<T> | ||
{ | ||
private readonly ImmutableArray<T> array; | ||
private int index; | ||
|
||
public ImmutableArrayEnumeratorNoThrow(ImmutableArray<T> array) | ||
{ | ||
this.array = array; | ||
index = -1; | ||
} | ||
|
||
public T Current { get => index < array.Length ? array[index] : default!; } | ||
|
||
object? IEnumerator.Current { get => Current; } | ||
|
||
public bool MoveNext() | ||
{ | ||
return ++index < array.Length; | ||
} | ||
|
||
public void Reset() | ||
{ | ||
index = -1; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
src/Snap.Hutao/Snap.Hutao/Core/Collection/TwoEnumerableEnumerator.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright (c) DGP Studio. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using JetBrains.Annotations; | ||
using System.Collections.Immutable; | ||
|
||
namespace Snap.Hutao.Core.Collection; | ||
|
||
internal sealed partial class TwoEnumerableEnumerator<TFirst, TSecond> : IDisposable | ||
{ | ||
private readonly IEnumerator<TFirst> firstEnumerator; | ||
private readonly IEnumerator<TSecond> secondEnumerator; | ||
|
||
public TwoEnumerableEnumerator(IEnumerable<TFirst> firstEnumerable, IEnumerable<TSecond> secondEnumerable) | ||
{ | ||
firstEnumerator = GetNoThrowEnumeratorIfPossible(firstEnumerable); | ||
secondEnumerator = GetNoThrowEnumeratorIfPossible(secondEnumerable); | ||
} | ||
|
||
public (TFirst? First, TSecond? Second) Current { get => (firstEnumerator.Current, secondEnumerator.Current); } | ||
|
||
public bool MoveNext(ref bool moveFirst, ref bool moveSecond) | ||
{ | ||
moveFirst = moveFirst && firstEnumerator.MoveNext(); | ||
moveSecond = moveSecond && secondEnumerator.MoveNext(); | ||
|
||
return moveFirst || moveSecond; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
firstEnumerator.Dispose(); | ||
secondEnumerator.Dispose(); | ||
} | ||
|
||
[MustDisposeResource] | ||
private static IEnumerator<T> GetNoThrowEnumeratorIfPossible<T>(IEnumerable<T> enumerable) | ||
{ | ||
if (enumerable is ImmutableArray<T> immutableArray) | ||
{ | ||
return new ImmutableArrayEnumeratorNoThrow<T>(immutableArray); | ||
} | ||
|
||
return enumerable.GetEnumerator(); | ||
} | ||
} |
32 changes: 0 additions & 32 deletions
32
src/Snap.Hutao/Snap.Hutao/Core/Collection/TwoEnumerbleEnumerator.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.