2024-01-17 10:25:01 +03:00
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2023-05-11 21:49:17 +03:00
|
|
|
|
|
2024-01-28 18:18:54 +07:00
|
|
|
|
namespace Content.Server._White.Other.CustomFluffSystems.Pets;
|
2023-05-11 21:49:17 +03:00
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2024-01-17 10:25:01 +03:00
|
|
|
|
public sealed partial class PetSummonComponent : Component
|
2023-05-11 21:49:17 +03:00
|
|
|
|
{
|
2024-01-17 10:25:01 +03:00
|
|
|
|
[DataField("petSummonAction", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
|
|
|
|
public string PetSummonAction = "PetSummonAction";
|
2023-05-11 21:49:17 +03:00
|
|
|
|
|
2024-01-17 10:25:01 +03:00
|
|
|
|
[DataField("petGhostSummonAction", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
|
|
|
|
public string PetGhostSummonAction = "PetGhostSummonAction";
|
|
|
|
|
|
|
|
|
|
|
|
[DataField("petSummonActionEntity")] public EntityUid? PetSummonActionEntity;
|
|
|
|
|
|
[DataField("petGhostSummonActionEntity")] public EntityUid? PetGhostSummonActionEntity;
|
2023-05-11 21:49:17 +03:00
|
|
|
|
|
|
|
|
|
|
public int UsesLeft = 10;
|
|
|
|
|
|
|
|
|
|
|
|
public EntityUid? SummonedEntity;
|
|
|
|
|
|
}
|