mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-21 23:48:15 +03:00
* Goonsquad (#1) * Я умру В одиночестве * Я был создан свободным * Update Resources/Prototypes/Entities/Structures/Storage/Closets/base_structureclosets.yml * Update Resources/Prototypes/Entities/Structures/Storage/Closets/base_structureclosets.yml * Update Resources/Textures/_White/Structures/Storage/wall_locker.rsi/meta.json * привет ми з украины (#2) * 3na4 * 3na4 * 3na4 * 1 * 2 * 3 * Pere3na4 * Update reinforced.yml * fix * fix1 * fix2 * toolboxes * toolbox_fix * toolbox_fix2 * toolbox_fix3 * con_testfix * Update Content.Shared/Atmos/Components/PipeAppearanceComponent.cs Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Storage/Canisters/gas_canisters.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Catalog/VendingMachines/Inventories/tankdispenser.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Catalog/VendingMachines/Inventories/tankdispenser.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Storage/Canisters/gas_canisters.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/binary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Storage/Canisters/gas_canisters.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/special.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/trinary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * +fixtures * fixidk * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/trinary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * fixidk2 * fixidk3 * Update Resources/Prototypes/Recipes/Construction/utilities.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * fixidk4 * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/trinary.yml * pda * +sprites * wtfIsUpstream * wtfIsUpstream2 * wtfIdUpstream3 * Update Resources/Prototypes/Entities/Structures/Storage/Canisters/gas_canisters.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Content.Client/PDA/PdaVisualizerSystem.cs Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update pda.yml * wtfIsUpstream4 --------- Co-authored-by: SentryPrimis <126711441+SentryPrimies@users.noreply.github.com> Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>
55 lines
2.1 KiB
C#
55 lines
2.1 KiB
C#
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.GameStates;
|
|
using Content.Shared.Access.Components;
|
|
using Content.Shared.Containers.ItemSlots;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Shared.PDA
|
|
{
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] // WWDP edit +AutoGenerateComponentState
|
|
public sealed partial class PdaComponent : Component
|
|
{
|
|
public const string PdaIdSlotId = "PDA-id";
|
|
public const string PdaPenSlotId = "PDA-pen";
|
|
public const string PdaPaiSlotId = "PDA-pai";
|
|
public const string PdaPassportSlotId = "PDA-passport";
|
|
|
|
[DataField]
|
|
public ItemSlot IdSlot = new();
|
|
|
|
[DataField]
|
|
public ItemSlot PenSlot = new();
|
|
|
|
[DataField]
|
|
public ItemSlot PaiSlot = new();
|
|
|
|
[DataField]
|
|
public ItemSlot PassportSlot = new();
|
|
// WWDP edit start
|
|
[DataField, AutoNetworkedField]
|
|
public bool Enabled { get; set; } = false;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool Screen { get; set; } = false;
|
|
// WWDP edit end
|
|
|
|
// Really this should just be using ItemSlot.StartingItem. However, seeing as we have so many different starting
|
|
// PDA's and no nice way to inherit the other fields from the ItemSlot data definition, this makes the yaml much
|
|
// nicer to read.
|
|
[DataField("id", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
public string? IdCard;
|
|
|
|
[ViewVariables] public EntityUid? ContainedId;
|
|
[ViewVariables] public bool FlashlightOn;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)] public string? OwnerName;
|
|
// The Entity that "owns" the PDA, usually a player's character.
|
|
// This is useful when we are doing stuff like renaming a player and want to find their PDA to change the name
|
|
// as well.
|
|
[ViewVariables(VVAccess.ReadWrite)] public EntityUid? PdaOwner;
|
|
[ViewVariables] public string? StationName;
|
|
[ViewVariables] public string? StationAlertLevel;
|
|
[ViewVariables] public Color StationAlertColor = Color.White;
|
|
}
|
|
}
|