Files
EE2Clone/Assets/Scripts/Components/BufferComponents.cs
ldbetteridge 58da5d1d71 Initial import
2026-03-31 15:59:23 +01:00

40 lines
1016 B
C#

using Unity.Entities;
using Unity.NetCode;
using EE2Clone.Core;
namespace EE2Clone.Components
{
[GhostComponent]
[InternalBufferCapacity(4)]
public struct CounterBonusElement : IBufferElementData
{
[GhostField] public UnitClass TargetClass;
[GhostField] public float Multiplier;
}
[GhostComponent]
[InternalBufferCapacity(5)]
public struct ProductionQueueElement : IBufferElementData
{
[GhostField] public int UnitDataId;
[GhostField] public float TimeRemaining;
[GhostField] public float TotalTime;
}
[GhostComponent]
[InternalBufferCapacity(2)]
public struct ResearchQueueElement : IBufferElementData
{
[GhostField] public int TechId;
[GhostField] public float TimeRemaining;
[GhostField] public float TotalTime;
}
[GhostComponent]
[InternalBufferCapacity(32)]
public struct PlayerTechBufferElement : IBufferElementData
{
[GhostField] public int TechId;
}
}