Add a projectile tracker, so that we can allow fluid bombs.
This commit is contained in:
parent
ae87f242d7
commit
965361c406
4 changed files with 68 additions and 7 deletions
|
|
@ -764,6 +764,12 @@ namespace TShockAPI
|
|||
/// </summary>
|
||||
public int LastKilledProjectile = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Keeps track of recently created projectiles by this player. TShock.cs OnSecondUpdate() removes from this in an async task.
|
||||
/// Projectiles older than 5 seconds are purged from this collection as they are no longer "recent".
|
||||
/// </summary>
|
||||
internal List<TShockAPI.GetDataHandlers.ProjectileStruct> RecentlyCreatedProjectiles = new List<TShockAPI.GetDataHandlers.ProjectileStruct>();
|
||||
|
||||
/// <summary>
|
||||
/// The current region this player is in, or null if none.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue