removed dependency on Forge Attribute Set node
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user