-
Notifications
You must be signed in to change notification settings - Fork 16
/
IOtherCharacterAnimationNotifier.cs
41 lines (27 loc) · 1.74 KB
/
IOtherCharacterAnimationNotifier.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using AutomaticTypeMapper;
using EOLib.Domain.Spells;
using System.Collections.Generic;
namespace EOLib.Domain.Notifiers
{
public interface IOtherCharacterAnimationNotifier
{
void StartOtherCharacterWalkAnimation(int characterID, byte destinationX, byte destinationY, EODirection direction);
void StartOtherCharacterAttackAnimation(int characterID, int noteIndex = -1);
void NotifyStartSpellCast(short playerId, short spellId);
void NotifyTargetNpcSpellCast(short playerId);
void NotifySelfSpellCast(short playerId, short spellId, int spellHp, byte percentHealth);
void NotifyTargetOtherSpellCast(short sourcePlayerID, short targetPlayerID, short spellId, int recoveredHP, byte targetPercentHealth);
void NotifyGroupSpellCast(short playerId, short spellId, short spellHp, List<GroupSpellTarget> spellTargets);
}
[AutoMappedType]
public class NoOpOtherCharacterAnimationNotifier : IOtherCharacterAnimationNotifier
{
public void StartOtherCharacterWalkAnimation(int characterID, byte destinationX, byte destinationY, EODirection direction) { }
public void StartOtherCharacterAttackAnimation(int characterID, int noteIndex = -1) { }
public void NotifyStartSpellCast(short playerId, short spellId) { }
public void NotifyTargetNpcSpellCast(short playerId) { }
public void NotifySelfSpellCast(short playerId, short spellId, int spellHp, byte percentHealth) { }
public void NotifyTargetOtherSpellCast(short sourcePlayerID, short targetPlayerID, short spellId, int recoveredHP, byte targetPercentHealth) { }
public void NotifyGroupSpellCast(short playerId, short spellId, short spellHp, List<GroupSpellTarget> spellTargets) { }
}
}