4 Commits

Author SHA1 Message Date
MSWS
ccb840ebb4 refactor: Refactor code for consistency, readability, and cleanup
```
- 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.
```
2025-07-31 22:11:31 -07:00
MSWS
85626af7c7 Flesh out readmes 2025-07-31 15:59:26 -07:00
Isaac
c51f85ffd3 Update locale structure, begin config API (#2)
* Overhaul locale structure

* Reformat & Cleanup

* refactor: Refactor roles to use dependency injection.

```
Introduce dependency injection and refactor role architecture

- Refactor `RoleAssignerTest` to use `IServiceProvider` for dependency injection, update role initialization, and align test cases accordingly.
- Update `IOnlinePlayer` and `IGame` interfaces to use the fully qualified namespace for roles and modify method signatures to reflect new role architecture.
- Add `BaseRole` abstract class and refactor role classes (e.g., `InnocentRole`, `DetectiveRole`, `TraitorRole`, `RatioBasedRole`) to inherit from it, implementing dependency injection and overriding key properties and methods.
- Introduce new storage interfaces (`IStorage<T>`, `IWriteable<T>`, `IKeyedStorage<T>`) for improved configuration management and add related test implementations (e.g., `FakeConfig`, `MemoryStorage`).
- Add `GameConfig` class for configurable game and round settings, implement `CS2GameConfig` class to manage configuration storage and plugin module lifecycle, and refactor `RoundBasedGame` to leverage the new configuration structure.
```

* Fix lang copying

* Rename step

* Add debug

* Fix path
2025-07-30 20:10:40 -07:00
MSWS
ffc09cc3f4 Add Localization 2025-07-30 03:32:31 -07:00