Integrate mission-owned chat administration and menu

This commit is contained in:
2026-09-19 23:49:54 +02:00
parent 27989b85a3
commit 5e742691ad
154 changed files with 19498 additions and 134 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
"""Run actual companion dispatch and discovery ledger bodies; native RPC is separate."""
from policy_harness import ROOT, body, run
admin = ROOT / 'addons/core/Scripts/Game/ERR/ERR_AdminService.c'
chat = ROOT / 'addons/chat/Scripts/Game/ERR/ERR_AdminCommands.c'
provider = ROOT / 'addons/intel/Scripts/Game/ERR/ERR_IntelAdminProvider.c'
discovery = ROOT / 'addons/core/Scripts/Game/ERR/ERR_DiscoveryService.c'
execute = body(admin, 'void Execute(')
assert execute.index('if (!Replication.IsServer()') < execute.index('if (!authorized)') < execute.index('if (Extension(mode, arguments, replies))')
extension = body(chat, 'protected override bool Extension(')
extension = (extension.replace('protected override ', '').replace('array<string>', 'Array<string>&')
extension = body(provider, 'override bool Execute(')
extension = (extension.replace('override ', '').replace('bool Execute(', 'bool Extension(').replace('array<string>', 'Array<string>&')
.replace('ERR_GameMode mode', 'Mode* mode').replace('ERR_IntelService intel', 'Intel* intel')
.replace('ERR_HQ hq', 'HQ* hq').replace('ERR_HQ.Cast(', 'HQ::Cast(')
.replace('super.Extension(', 'Base::Extension(').replace('Math.Max(', 'std::max(')