- add: More controls
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.Item;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared._Amour.Hole;
|
||||
|
||||
[RegisterComponent]
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed partial class HoleComponent : Component
|
||||
{
|
||||
[ViewVariables] public NetEntity? Parent;
|
||||
@@ -24,6 +25,9 @@ public sealed partial class HoleComponent : Component
|
||||
|
||||
// this shit just for sprite prefix like state: dildo_FRONT
|
||||
[DataField] public List<HolePrefix> Prefixes = new();
|
||||
|
||||
[ViewVariables] public bool IsExcited = false;
|
||||
[DataField] public bool IsMainOrgan = false;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable, DataDefinition]
|
||||
@@ -33,6 +37,10 @@ public sealed partial class HolePrefix
|
||||
public string Layer;
|
||||
[DataField]
|
||||
public string Prefix;
|
||||
[DataField]
|
||||
public string ExcitedPrefix;
|
||||
[DataField]
|
||||
public bool HasForHuman;
|
||||
}
|
||||
|
||||
public enum HoleType : byte
|
||||
|
||||
@@ -10,4 +10,5 @@ public sealed partial class HoleContainerComponent : Component
|
||||
public const string SlotName = "Funny";
|
||||
[ViewVariables] public Container Slot = default!;
|
||||
[DataField] public List<EntProtoId> HolePrototypes = new();
|
||||
[DataField] public bool UseHumanGenitalLayers = false;
|
||||
}
|
||||
|
||||
@@ -20,4 +20,10 @@ public abstract partial class SharedHoleSystem : EntitySystem
|
||||
{
|
||||
component.Parent = GetNetEntity(args.Container.Owner);
|
||||
}
|
||||
|
||||
public virtual void Exide(Entity<HoleComponent?> entity, bool value = true)
|
||||
{
|
||||
if(!Resolve(entity.Owner,ref entity.Comp)) return;
|
||||
entity.Comp.IsExcited = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user