WutheringWaves/GameServer/Systems/Entity/Component/EntityConcomitantsComponent.cs
2024-02-10 19:04:03 +03:00

28 lines
660 B
C#

using Protocol;
namespace GameServer.Systems.Entity.Component;
internal class EntityConcomitantsComponent : EntityComponentBase
{
public List<long> CustomEntityIds { get; }
public EntityConcomitantsComponent()
{
CustomEntityIds = [];
}
public override EntityComponentType Type => EntityComponentType.Concomitants;
public override EntityComponentPb Pb
{
get
{
EntityComponentPb pb = new()
{
ConcomitantsComponentPb = new()
};
pb.ConcomitantsComponentPb.CustomEntityIds.AddRange(CustomEntityIds);
return pb;
}
}
}