mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 22:18:52 +03:00
* I hate it * Added ability to choose target body part on item throwing * забыл * WeaponRandom works with throwable weapon * RadialEntityMorph & RadialBUI fix * ru&en localization * Я себя зарежу нахуй за такое * Правки рисованной хуйни и прототипы с лодаутами * fuck * ну хорошо блять, убедил, одну пустую строчку уберу * loadout move to _White * Я после тех 3х банок не помню нахуй это нужно было * 1 more fix
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Shared._White.EntityGenerator;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, AutoGenerateComponentPause]
|
|
[Access(typeof(SharedEntityGeneratorSystem))]
|
|
public sealed partial class EntityGeneratorComponent : Component
|
|
{
|
|
[DataField, AutoNetworkedField]
|
|
public EntProtoId? PrototypeId;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public int MaxCharges = 3;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public int Charges = 3;
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan RechargeDuration = TimeSpan.FromSeconds(5);
|
|
|
|
[DataField("nextChargeTime", customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
[AutoNetworkedField, AutoPausedField]
|
|
public TimeSpan LastExtractTime;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool UseSingleCharge = true;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool OnlyFullRecharge;
|
|
}
|