removed dependency on Forge Attribute Set node
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 35s
Create tag and build when new code gets to main / Export (push) Successful in 7m50s

This commit is contained in:
2026-05-17 12:44:54 +02:00
parent 7746a40542
commit 3cdb7e85c3
9 changed files with 44 additions and 10 deletions

View File

@@ -29,6 +29,8 @@ public partial class ForgeEntityNode : Node3D, IForgeEntity
[Export]
public ForgeTagContainer? BaseTags { get; set; }
[Export]
public Godot.Collections.Array<ForgeUtils.AttributeSetType> AttributeSets { get; set; } = [];
[Export]
public ForgeSharedVariableSet? SharedVariableDefinitions { get; set; }
public required EntityAttributes Attributes { get; set; }
@@ -51,7 +53,7 @@ public partial class ForgeEntityNode : Node3D, IForgeEntity
{
BaseTags ??= new ForgeTagContainer();
Tags = new EntityTags(BaseTags.GetTagContainer());
Attributes = new EntityAttributes([.. ForgeUtils.CollectAttributeList(this)]);
Attributes = new EntityAttributes([.. ForgeUtils.CollectAttributeList(AttributeSets)]);
Abilities = new EntityAbilities(this);
Events = new EventManager();