Files
space-station-14/Content.Shared/DeviceLinking/SharedRandomGateEvents.cs
Borsh 6fc13a5875 Adding a random gate (#41627)
* Added random gate

* minor edit

* cleaning up my shit after trying to do something faster

* new lines

* some changes

* joke

* UI

* Long Division

* Dont use ctrl + x in 3 am

* I hope these are the final touches

* One thing, I don't know why

* noname commit

* no way, 1kk of code lines edit

* sudo rm -rf ... and something there...

* update

* sometimes its sad
2025-12-14 19:15:22 +00:00

22 lines
541 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared.DeviceLinking;
[Serializable, NetSerializable]
public sealed class RandomGateBoundUserInterfaceState(float successProbability) : BoundUserInterfaceState
{
public float SuccessProbability = successProbability;
}
[Serializable, NetSerializable]
public sealed class RandomGateProbabilityChangedMessage(float probability) : BoundUserInterfaceMessage
{
public float Probability = probability;
}
[Serializable, NetSerializable]
public enum RandomGateUiKey : byte
{
Key
}