mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Move PlayerWatcher to own assembly and make appropriate changes for reuse.
This commit is contained in:
parent
ea40d5bc9c
commit
d99707f77e
9 changed files with 335 additions and 133 deletions
28
Penumbra.PlayerWatch/IPlayerWatcher.cs
Normal file
28
Penumbra.PlayerWatch/IPlayerWatcher.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using Dalamud.Game.ClientState.Actors.Types;
|
||||
using Penumbra.GameData.Structs;
|
||||
|
||||
namespace Penumbra.PlayerWatch
|
||||
{
|
||||
public delegate void ActorChange( Actor actor );
|
||||
|
||||
public interface IPlayerWatcherBase : IDisposable
|
||||
{
|
||||
public int Version { get; }
|
||||
public bool Valid { get; }
|
||||
}
|
||||
|
||||
public interface IPlayerWatcher : IPlayerWatcherBase
|
||||
{
|
||||
public event ActorChange? ActorChanged;
|
||||
public bool Active { get; }
|
||||
|
||||
public void Enable();
|
||||
public void Disable();
|
||||
public void SetStatus( bool enabled );
|
||||
|
||||
public void AddPlayerToWatch( string name );
|
||||
public void RemovePlayerFromWatch( string playerName );
|
||||
public CharEquipment UpdateActorWithoutEvent( Actor actor );
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue