refactoring things out, removing unused additions

This commit is contained in:
Evil Factory
2021-09-10 19:10:05 -03:00
parent 813aaf29b8
commit ffb24594bc
8 changed files with 87 additions and 37 deletions
@@ -5,19 +5,6 @@ namespace Barotrauma.Items.Components
{
partial class CustomInterface : ItemComponent, IClientSerializable, IServerSerializable
{
public void UpdateClients()
{
//notify all clients of the new state
GameMain.Server.CreateEntityEvent(item, new object[]
{
NetEntityEvent.Type.ComponentState,
item.GetComponentIndex(this)
});
item.CreateServerEvent(this);
}
public void ServerRead(ClientNetObject type, IReadMessage msg, Client c)
{
bool[] elementStates = new bool[customInterfaceElementList.Count];
@@ -83,7 +70,7 @@ namespace Barotrauma.Items.Components
{
msg.Write(customInterfaceElementList[i].Signal);
}
else if(customInterfaceElementList[i].ContinuousSignal)
else if (customInterfaceElementList[i].ContinuousSignal)
{
msg.Write(customInterfaceElementList[i].State);
}
@@ -94,4 +81,4 @@ namespace Barotrauma.Items.Components
}
}
}
}
}