-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
namespace Starward.Core.SelfQuery; | ||
|
||
public static class SelfQueryTpyeEnumExtension | ||
{ | ||
|
||
public static string ToLocalization(this GenshinQueryType genshinQueryType) | ||
{ | ||
return genshinQueryType switch | ||
{ | ||
GenshinQueryType.Crystal => CoreLang.GenshinQueryType_GenesisCrystal, | ||
GenshinQueryType.Primogem => CoreLang.GenshinQueryType_Primogem, | ||
GenshinQueryType.Resin => CoreLang.GenshinQueryType_OriginalResin, | ||
GenshinQueryType.Artifact => CoreLang.GenshinQueryType_Artifact, | ||
GenshinQueryType.Weapon => CoreLang.GenshinQueryType_Weapon, | ||
_ => "", | ||
}; | ||
} | ||
|
||
|
||
|
||
public static string ToLocalization(this StarRailQueryType starRailQueryType) | ||
{ | ||
return starRailQueryType switch | ||
{ | ||
StarRailQueryType.Stellar => CoreLang.StarRailQueryType_StellarJade, | ||
StarRailQueryType.Dreams => CoreLang.StarRailQueryType_OneiricShared, | ||
StarRailQueryType.Relic => CoreLang.StarRailQueryType_Relic, | ||
StarRailQueryType.Cone => CoreLang.StarRailQueryType_LightCone, | ||
StarRailQueryType.Power => CoreLang.StarRailQueryType_TrailblazePower, | ||
_ => "", | ||
}; | ||
} | ||
|
||
|
||
|
||
public static string ToLocalization(this ZZZQueryType zZZQueryType) | ||
{ | ||
return zZZQueryType switch | ||
{ | ||
ZZZQueryType.Monochrome => CoreLang.ZZZQueryType_Monochrome, | ||
ZZZQueryType.Ploychrome => CoreLang.ZZZQueryType_Ploychrome, | ||
ZZZQueryType.PurchaseGift => CoreLang.ZZZQueryType_Bundle, | ||
ZZZQueryType.Battery => CoreLang.ZZZQueryType_BatteryCharge, | ||
ZZZQueryType.Engine => CoreLang.ZZZQueryType_WEngine, | ||
ZZZQueryType.Disk => CoreLang.ZZZQueryType_DriveDisc, | ||
_ => "", | ||
}; | ||
} | ||
|
||
} |
File renamed without changes.
File renamed without changes.