mirror of
https://github.com/MSWS/TTT.git
synced 2025-12-05 14:10:25 -08:00
``` - Remove unused namespace imports across multiple files to clean up code. - Reorganize constructors, fields, and method orders for improved readability and consistency in various classes, including `RoundBasedGame`, `PlayerActionsTest`, and `GameTest`. - Change expression-bodied methods to block-bodied methods in `EndReason`, `IGameManager`, and other API classes for consistency. - Add, remove, or adjust newlines and braces to improve code structure and maintainability. - Refactor `CombatHandler` to introduce memory module imports, update event dispatch logic, and improve damage-handling workflows. ```
930 B
930 B
TTT - Localizer
Responsible for managing the translations of the different TTT modules. In and of itself does not provide any translations, but rather provides a framework for other modules to provide their own translations.
For convenience, Localizer runs as a CLI tool that converts YML files to JSON files, as YML is nicer to work with, but JSON is the format used for CounterStrikeSharp's localization system.
Usage
- Build (
dotnet build) - Navigate to where the Localizer.dll is
- Run
dotnet Localizer.dll [input files...] -o [output file]
- CS# sources all translations from the single
.jsonfile; separating the YML files allows for easier management per module, the localizer will combine them into a single JSON file. - If you are only providing one input file, you can omit the
-oflag and it will output toinputFileName.jsonby default.