Files
MovementTests/addons/forge/resources/components/GrantAbility.cs
Minimata c4be97e0de
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 21s
Create tag and build when new code gets to main / Test (push) Successful in 6m56s
Create tag and build when new code gets to main / Export (push) Successful in 9m3s
added forge addon
2026-02-08 15:16:01 +01:00

29 lines
677 B
C#

// Copyright © Gamesmiths Guild.
using System.Collections.Generic;
using ForgeGodot.Addons.Forge.Resources.Components;
using Gamesmiths.Forge.Effects.Components;
using Godot;
namespace Gamesmiths.Forge.Godot.Resources.Components;
[Tool]
[GlobalClass]
public partial class GrantAbility : ForgeEffectComponent
{
[Export]
public ForgeGrantAbilityConfig[] GrantAbilityConfigs { get; set; } = [];
public override IEffectComponent GetComponent()
{
List<GrantAbilityConfig> configs = [];
foreach (ForgeGrantAbilityConfig config in GrantAbilityConfigs)
{
configs.Add(config.GetGrantAbilityConfig());
}
return new GrantAbilityEffectComponent([.. configs]);
}
}