mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Some more general cleanup.
This commit is contained in:
parent
44fc83784d
commit
3679b780cf
13 changed files with 116 additions and 111 deletions
|
|
@ -15,7 +15,7 @@ namespace Penumbra.PlayerWatch
|
|||
|
||||
private readonly DalamudPluginInterface _pi;
|
||||
internal readonly HashSet< PlayerWatcher > RegisteredWatchers = new();
|
||||
private readonly Dictionary< string, (CharEquipment, HashSet< PlayerWatcher >) > _equip = new();
|
||||
private readonly Dictionary< string, (ActorEquipment, HashSet< PlayerWatcher >) > _equip = new();
|
||||
private int _frameTicker;
|
||||
private IntPtr _lastGPoseAddress = IntPtr.Zero;
|
||||
|
||||
|
|
@ -41,9 +41,9 @@ namespace Penumbra.PlayerWatch
|
|||
}
|
||||
}
|
||||
|
||||
internal CharEquipment UpdateActorWithoutEvent( Actor actor )
|
||||
internal ActorEquipment UpdateActorWithoutEvent( Actor actor )
|
||||
{
|
||||
var equipment = new CharEquipment( actor );
|
||||
var equipment = new ActorEquipment( actor );
|
||||
if( _equip.ContainsKey( actor.Name ) )
|
||||
{
|
||||
_equip[ actor.Name ] = ( equipment, _equip[ actor.Name ].Item2 );
|
||||
|
|
@ -60,7 +60,7 @@ namespace Penumbra.PlayerWatch
|
|||
}
|
||||
else
|
||||
{
|
||||
_equip[ playerName ] = ( new CharEquipment(), new HashSet< PlayerWatcher > { watcher } );
|
||||
_equip[ playerName ] = ( new ActorEquipment(), new HashSet< PlayerWatcher > { watcher } );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue