Pet Nicknames IPC implementation (#74)

* Pet Nicknames IPC implementation

* Moodles works again
This commit is contained in:
Amber 2024-09-10 09:13:34 +02:00 committed by GitHub
parent 9c954471fb
commit bf338ec697
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 168 additions and 12 deletions

View file

@ -216,9 +216,11 @@ public class PlayerDataFactory
_logger.LogDebug("Heels is now: {heels}", previousData.HeelsData);
if (objectKind == ObjectKind.Player)
{
// TODO: use petnames here and save it to moodles data for temporary transfer
previousData.MoodlesData = await _ipcManager.Moodles.GetStatusAsync(playerRelatedObject.Address).ConfigureAwait(false) ?? string.Empty;
_logger.LogDebug("Moodles is now: {moodles}", previousData.MoodlesData);
previousData.MoodlesData = _ipcManager.PetNames.GetLocalNames();
_logger.LogDebug("Pet Nicknames is now: {moodles}", previousData.MoodlesData);
}
if (previousData.FileReplacements.TryGetValue(objectKind, out HashSet<FileReplacement>? fileReplacements))