40 lines
1016 B
C#
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;
|
|
}
|
|
}
|