draft options working; spells won't cast though

This commit is contained in:
Ian Woods 2026-07-14 20:56:50 -07:00
parent 2429efbf6a
commit 7cf15dcaa6
37 changed files with 1340 additions and 0 deletions

View file

@ -0,0 +1,15 @@
namespace TD.Core
{
/// <summary>
/// Identifies which builder spell a
/// <see cref="TD.Gameplay.BuilderSpells.BuilderSpellDefinition"/> represents. Mirrors
/// <see cref="BuilderEffectKind"/> — a stable, enum-indexed identifier used by
/// <see cref="TD.Gameplay.BuilderSpells.BuilderSpellPool"/> and
/// <see cref="TD.Gameplay.SpellSlot"/> instead of an asset reference.
/// </summary>
public enum BuilderSpellKind : byte
{
Fireball = 0,
SlowArea = 1,
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: a043765d6aa295a5397226e3e32d2c37

View file

@ -0,0 +1,23 @@
namespace TD.Core
{
/// <summary>
/// How a <see cref="TD.Gameplay.BuilderSpells.BuilderSpellDefinition"/> is aimed.
/// </summary>
/// <remarks>
/// Deliberately not named <c>TargetType</c> — that name is already taken in this
/// namespace by <see cref="TargetType"/> (Single/Splash/Chain/AllInRange, used by
/// <c>TowerDefinition</c>/<c>TowerCombat</c>), and every combat-adjacent file already
/// has <c>using TD.Core;</c>.
/// </remarks>
public enum SpellTargetType : byte
{
/// <summary>Aimed at a single ground point. No radius preview while aiming, even
/// if the spell has an internal splash radius.</summary>
PointTarget = 0,
/// <summary>Aimed at a ground point, affecting everything within
/// <see cref="TD.Gameplay.BuilderSpells.BuilderSpellDefinition.Radius"/>. Previewed
/// as a scaled radius decal while aiming.</summary>
AreaOfEffect = 1,
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 0ebeda6f965b64f7ca82ecd6f849142a