This commit is contained in:
Stanley Dimant
2024-07-27 02:29:59 +02:00
parent 91c7cc5fc8
commit 9c954471fb
7 changed files with 48 additions and 2 deletions

View File

@@ -216,6 +216,7 @@ 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);
}

View File

@@ -342,6 +342,7 @@ public sealed class PairHandler : DisposableMediatorSubscriberBase
break;
case PlayerChanges.Moodles:
// TODO: send it to petnames ipc here instead
await _ipcManager.Moodles.SetStatusAsync(handler.Address, charaData.MoodlesData).ConfigureAwait(false);
break;

View File

@@ -122,6 +122,9 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
MoodlesChanged();
}
});
// TODO: if event is needed for petnames add it here similar to moodles
Mediator.Subscribe<PenumbraModSettingChangedMessage>(this, (msg) =>
{
Logger.LogDebug("Received Penumbra Mod settings change, updating player");