Kill switch

This commit is contained in:
Zeeshaun
2026-04-01 20:22:05 +00:00
parent bed8e91bc0
commit c718fb343d
14 changed files with 413 additions and 15 deletions
@@ -49,6 +49,15 @@ public class CharacterStore
return result.ModifiedCount > 0 || result.MatchedCount > 0;
}
public async Task<int> ResetAllCoordsAsync(Coord coord)
{
var update = Builders<Character>.Update
.Set(c => c.Coord, coord)
.Set(c => c.LastSeenUtc, DateTime.UtcNow);
var result = await _col.UpdateManyAsync(Builders<Character>.Filter.Empty, update);
return (int)result.MatchedCount;
}
public async Task<List<VisibleCharacter>> GetVisibleOthersAsync(string characterId, int x, int y, int radius, DateTime onlineSinceUtc)
{
var characters = await _col.Find(c =>