mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Add InterfaceData constructor (#5559)
* Add InterfaceData constructor Add InterfaceData constructor to allow for dynamic UI assignment via SharedUiSystem::setUi * empty commit because of heisentest
This commit is contained in:
@@ -69,6 +69,12 @@ namespace Robust.Shared.GameObjects
|
||||
[DataField]
|
||||
public bool RequireInputValidation = true;
|
||||
|
||||
public InterfaceData(string clientType, float interactionRange = 2f, bool requireInputValidation = true)
|
||||
{
|
||||
ClientType = clientType;
|
||||
InteractionRange = interactionRange;
|
||||
RequireInputValidation = requireInputValidation;
|
||||
}
|
||||
public InterfaceData(InterfaceData data)
|
||||
{
|
||||
ClientType = data.ClientType;
|
||||
|
||||
Reference in New Issue
Block a user