Update projectilestruct to add brief documentation

This commit is contained in:
Chris 2020-06-01 19:12:14 +09:30 committed by GitHub
parent 71cc7f482b
commit a7166536c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3771,11 +3771,26 @@ namespace TShockAPI
{TileID.MinecartTrack, 3} {TileID.MinecartTrack, 3}
}; };
/// <summary>
/// Contains brief information about a projectile
/// </summary>
public struct ProjectileStruct public struct ProjectileStruct
{ {
/// <summary>
/// Index inside Main.projectile
/// </summary>
public int Index { get; set; } public int Index { get; set; }
/// <summary>
/// Projectile's type ID
/// </summary>
public short Type { get; set; } public short Type { get; set; }
/// <summary>
/// Time at which the projectile was created
/// </summary>
public DateTime CreatedAt { get; set; } public DateTime CreatedAt { get; set; }
/// <summary>
/// Whether or not the projectile has been killed
/// </summary>
public bool Killed { get; internal set; } public bool Killed { get; internal set; }
} }