Initial import
This commit is contained in:
39
Assets/Scripts/Components/BufferComponents.cs
Normal file
39
Assets/Scripts/Components/BufferComponents.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user