Files
Project-M/Assets/_Project/Scripts/Simulation/Combat/AbilityPrefabElement.cs
T
2026-05-31 21:35:12 -07:00

16 lines
545 B
C#

using Unity.Entities;
namespace ProjectM.Simulation
{
/// <summary>
/// Companion buffer on the AbilityDatabase singleton mapping an ability id to its projectile ghost
/// prefab entity. Prefab/entity references are kept OUT of the blob (blob assets don't remap entity
/// references); they are baked here via GetEntity, which the entity serializer patches correctly.
/// </summary>
public struct AbilityPrefabElement : IBufferElementData
{
public byte Id; // AbilityId
public Entity Prefab;
}
}