mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Some VRB output for PlayerWatcher.
This commit is contained in:
parent
557d03861f
commit
ec99887387
1 changed files with 3 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ namespace Penumbra.PlayerWatch
|
||||||
|
|
||||||
internal void Clear()
|
internal void Clear()
|
||||||
{
|
{
|
||||||
|
PluginLog.Verbose( "Clearing PlayerWatcher Store." );
|
||||||
_cancel = true;
|
_cancel = true;
|
||||||
foreach( var kvp in _equip )
|
foreach( var kvp in _equip )
|
||||||
{
|
{
|
||||||
|
|
@ -138,6 +139,7 @@ namespace Penumbra.PlayerWatch
|
||||||
|
|
||||||
private static void TriggerEvents( IEnumerable< PlayerWatcher > watchers, Actor actor )
|
private static void TriggerEvents( IEnumerable< PlayerWatcher > watchers, Actor actor )
|
||||||
{
|
{
|
||||||
|
PluginLog.Verbose( "Triggering events for {ActorName} at 0x{Address:X16}.", actor.Name, actor.Address );
|
||||||
foreach( var watcher in watchers.Where( w => w.Active ) )
|
foreach( var watcher in watchers.Where( w => w.Active ) )
|
||||||
{
|
{
|
||||||
watcher.Trigger( actor );
|
watcher.Trigger( actor );
|
||||||
|
|
@ -225,6 +227,7 @@ namespace Penumbra.PlayerWatch
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PluginLog.Verbose( "Comparing Gear for {ActorName}...", actor.Name );
|
||||||
if( !equip.Item1.CompareAndUpdate( actor ) )
|
if( !equip.Item1.CompareAndUpdate( actor ) )
|
||||||
{
|
{
|
||||||
TriggerEvents( equip.Item2, actor );
|
TriggerEvents( equip.Item2, actor );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue