mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Some more general cleanup.
This commit is contained in:
parent
44fc83784d
commit
3679b780cf
13 changed files with 116 additions and 111 deletions
|
|
@ -23,6 +23,6 @@ namespace Penumbra.PlayerWatch
|
|||
|
||||
public void AddPlayerToWatch( string name );
|
||||
public void RemovePlayerFromWatch( string playerName );
|
||||
public CharEquipment UpdateActorWithoutEvent( Actor actor );
|
||||
public ActorEquipment UpdateActorWithoutEvent( Actor actor );
|
||||
}
|
||||
}
|
||||
|
|
@ -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 } );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ namespace Penumbra.PlayerWatch
|
|||
_playerWatch!.RemovePlayerFromWatch( playerName, this );
|
||||
}
|
||||
|
||||
public CharEquipment UpdateActorWithoutEvent( Actor actor )
|
||||
public ActorEquipment UpdateActorWithoutEvent( Actor actor )
|
||||
{
|
||||
CheckValidity();
|
||||
return _playerWatch!.UpdateActorWithoutEvent( actor );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue