feat(mosstank): add VTank-style automation PoC

This commit is contained in:
Erik 2026-08-27 18:57:21 +02:00
parent f6fe0f2a4f
commit 4e6e9bc9d9
212 changed files with 49462 additions and 416 deletions

View file

@ -65,6 +65,21 @@ internal sealed class LiveEntityDeletionController : ILiveEntityPruneSink
return removed || removedDormant;
}
/// <summary>
/// VTank ghost cleanup: synthesize the exact current incarnation delete,
/// then use the same complete teardown transaction as a server DeleteObject.
/// </summary>
public bool DeleteClientGhost(uint serverGuid)
{
if (serverGuid == 0u
|| serverGuid == _identity.ServerGuid
|| !_runtime.TryGetRecord(serverGuid, out LiveEntityRecord record))
{
return false;
}
return Delete(new DeleteObject.Parsed(serverGuid, record.Generation));
}
public bool Prune(LiveEntityPruneCandidate candidate)
{
if (!_runtime.TryGetRecord(