WutheringWaves/GameServer/Systems/Entity/Component/EntityConcomitantsComponent.cs

29 lines
660 B
C#
Raw Normal View History

2024-02-10 16:04:03 +00:00
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;
}
}
}