Working on projectiles
This commit is contained in:
@@ -5,6 +5,8 @@ public class TickResult
|
||||
public List<DamageEvent> DamageEvents { get; set; } = new();
|
||||
public List<DeathEvent> DeathEvents { get; set; } = new();
|
||||
public List<AbilityEvent> AbilityEvents { get; set; } = new();
|
||||
public List<ProjectileHitEvent> ProjectileHitEvents { get; set; } = new();
|
||||
public List<ProjectileExpiredEvent> ProjectileExpiredEvents { get; set; } = new();
|
||||
public DungeonPhase Phase { get; set; }
|
||||
}
|
||||
|
||||
@@ -54,3 +56,20 @@ public enum EntityType
|
||||
Mob,
|
||||
Chest
|
||||
}
|
||||
|
||||
public class ProjectileHitEvent
|
||||
{
|
||||
public int ProjectileId { get; set; }
|
||||
public EntityType TargetType { get; set; }
|
||||
public int TargetId { get; set; }
|
||||
public float X { get; set; }
|
||||
public float Y { get; set; }
|
||||
}
|
||||
|
||||
public class ProjectileExpiredEvent
|
||||
{
|
||||
public int ProjectileId { get; set; }
|
||||
public float X { get; set; }
|
||||
public float Y { get; set; }
|
||||
public string Reason { get; set; } = "range"; // "range", "wall", or "hit"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user