| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- public static class GameLocale
- {
- public static string ModeName(string modeKey)
- {
- return L.Get("defs.mode." + modeKey + ".name");
- }
- public static string ModeDescription(string modeKey)
- {
- return L.Get("defs.mode." + modeKey + ".desc");
- }
- public static string ModeTag(string modeKey)
- {
- return modeKey switch
- {
- GameDefinitions.ClassicMode => L.Get("defs.tag.no_timer"),
- GameDefinitions.RushMode => L.Get("defs.tag.timed"),
- GameDefinitions.SealedMode => L.Get("defs.tag.chained"),
- _ => ""
- };
- }
- public static string PreviewMoves(int moves)
- {
- return L.F("defs.preview.moves", moves);
- }
- public static string PreviewFruits(int count)
- {
- return L.F("defs.preview.fruits", count);
- }
- public static string PowerUpName(string itemKey)
- {
- return L.Get("defs.item." + itemKey + ".name");
- }
- public static string PowerUpShortName(string itemKey)
- {
- if (itemKey == GameDefinitions.KeyItem)
- return L.Get("defs.item.key.short");
- return PowerUpName(itemKey);
- }
- public static string PowerUpDescription(string itemKey)
- {
- return L.Get("defs.item." + itemKey + ".desc");
- }
- public static string ModeLevelLine(string modeKey, int level)
- {
- return L.F("game.mode_level", ModeName(modeKey), level);
- }
- }
|