draft options working; spells won't cast though
This commit is contained in:
parent
2429efbf6a
commit
7cf15dcaa6
37 changed files with 1340 additions and 0 deletions
15
Assets/_Project/Scripts/Core/BuilderSpellKind.cs
Normal file
15
Assets/_Project/Scripts/Core/BuilderSpellKind.cs
Normal 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,
|
||||
}
|
||||
}
|
||||
2
Assets/_Project/Scripts/Core/BuilderSpellKind.cs.meta
Normal file
2
Assets/_Project/Scripts/Core/BuilderSpellKind.cs.meta
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a043765d6aa295a5397226e3e32d2c37
|
||||
23
Assets/_Project/Scripts/Core/SpellTargetType.cs
Normal file
23
Assets/_Project/Scripts/Core/SpellTargetType.cs
Normal 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,
|
||||
}
|
||||
}
|
||||
2
Assets/_Project/Scripts/Core/SpellTargetType.cs.meta
Normal file
2
Assets/_Project/Scripts/Core/SpellTargetType.cs.meta
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0ebeda6f965b64f7ca82ecd6f849142a
|
||||
Loading…
Add table
Add a link
Reference in a new issue