Disposal mailing (#2194)
* Implement device networking * Implement device configuration menu * Fix device network * Implement disposal mailing unit * Implement base network connection Implement wired and wireless network connection Implement device network metadata * Fix dereference null error * Fix wired network null checks * Change BaseNetworks enum to NetworkUtils class Add PingResponse function to NetworkUtils Change device network file structure * Add doc comments * Apply suggestions from code review Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com> * Add tag validation to disposal mailing unit * Add tag validation to the mailing unit component * Address reviews Change WiredNetwork can connect check Change device networking string literals to constants * Address reviews Revert changes to PowerProvider and PowerReceiver Add new NodeGroup WELP * Fix recursive access to Owner property * Integrate suggested changes * Fix TryGetWireNet acting on NullPowerProvider Fix network connections not checking if their owner has been deleted * Close device network connection when the owning entity got deleted Fix mailing unit not closing the device network connection on remove * Remove GetWireNet from NullPowerProvider Co-authored-by: Julian Giebel <j.giebel@netrocks.info> Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameObjects.Components.UserInterface;
|
||||
using Robust.Shared.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components
|
||||
{
|
||||
public class SharedConfigurationComponent : Component
|
||||
{
|
||||
public override string Name => "Configuration";
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState
|
||||
{
|
||||
public readonly Dictionary<string, string> Config;
|
||||
|
||||
public ConfigurationBoundUserInterfaceState(Dictionary<string, string> config)
|
||||
{
|
||||
Config = config;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Message data sent from client to server when the device configuration is updated.
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public class ConfigurationUpdatedMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public readonly Dictionary<string, string> Config;
|
||||
|
||||
public ConfigurationUpdatedMessage(Dictionary<string, string> config)
|
||||
{
|
||||
Config = config;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class ValidationUpdateMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public readonly string ValidationString;
|
||||
|
||||
public ValidationUpdateMessage(string validationString)
|
||||
{
|
||||
ValidationString = validationString;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum ConfigurationUiKey
|
||||
{
|
||||
Key
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user