forked from Ilemni/OriMod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIBashable.cs
More file actions
29 lines (25 loc) · 853 Bytes
/
IBashable.cs
File metadata and controls
29 lines (25 loc) · 853 Bytes
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
using Microsoft.Xna.Framework;
using Terraria.ModLoader;
namespace OriMod {
/// <summary>
/// For <see cref="GlobalNPC"/>s or <see cref="GlobalProjectile"/>s that can be Bashed.
/// </summary>
public interface IBashable {
/// <summary>
/// The player that is bashing this or last bashed this.
/// </summary>
OriPlayer BashPlayer { get; set; }
/// <summary>
/// The position where the entity was bashed.
/// </summary>
Vector2 BashPosition { get; set; }
/// <summary>
/// Whether or not the entity is being bashed.
/// </summary>
bool IsBashed { get; set; }
/// <summary>
/// Time since this was last Bashed, in frames. <see langword="0"/> if <see cref="IsBashed"/> is <see langword="true"/>, otherwise a positive value.
/// </summary>
int FramesSinceLastBash { get; }
}
}