Add MrGameEng.AI utility-AI module; format codebase with CSharpier New MrGameEng.AI module (ResponseCurve, Consideration, UtilityAction, UtilityAi selector, Blackboard) plus CSharpier formatting applied across the whole engine. Documents the CSharpier convention in CLAUDE.md. @
This commit is contained in:
@@ -22,7 +22,11 @@ public sealed class LanguageManagerTests : IDisposable
|
||||
[Fact]
|
||||
public void Get_UsesCurrentLanguage_FallsBackToDefault_ThenKey()
|
||||
{
|
||||
var mod = WriteLanguageMod("en", "ui.json", """{ "hud.title": "Title", "hud.only-en": "English only" }""");
|
||||
var mod = WriteLanguageMod(
|
||||
"en",
|
||||
"ui.json",
|
||||
"""{ "hud.title": "Title", "hud.only-en": "English only" }"""
|
||||
);
|
||||
var ruDir = Path.Combine(mod.RootPath, "Languages", "ru");
|
||||
Directory.CreateDirectory(ruDir);
|
||||
File.WriteAllText(Path.Combine(ruDir, "ui.json"), """{ "hud.title": "Заголовок" }""");
|
||||
@@ -39,7 +43,11 @@ public sealed class LanguageManagerTests : IDisposable
|
||||
[Fact]
|
||||
public void Load_LaterMod_OverridesKey()
|
||||
{
|
||||
var core = WriteLanguageMod("en", "ui.json", """{ "hud.title": "Core", "hud.other": "Other" }""");
|
||||
var core = WriteLanguageMod(
|
||||
"en",
|
||||
"ui.json",
|
||||
"""{ "hud.title": "Core", "hud.other": "Other" }"""
|
||||
);
|
||||
var patch = WriteLanguageMod("en", "ui.json", """{ "hud.title": "Patched" }""");
|
||||
|
||||
var languages = new LanguageManager();
|
||||
|
||||
Reference in New Issue
Block a user