2020-04-08 15:53:15 +05:00
|
|
|
|
using System;
|
|
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.GameObjects.Components.Chemistry
|
|
|
|
|
|
{
|
2020-09-09 18:32:31 -04:00
|
|
|
|
public class SharedSolutionContainerComponent : Component
|
2020-04-08 15:53:15 +05:00
|
|
|
|
{
|
2020-09-09 18:32:31 -04:00
|
|
|
|
public override string Name => "SolutionContainer";
|
2020-04-08 15:53:15 +05:00
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public sealed override uint? NetID => ContentNetIDs.SOLUTION;
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public class SolutionComponentState : ComponentState
|
|
|
|
|
|
{
|
2020-06-08 16:49:05 -04:00
|
|
|
|
public SolutionComponentState() : base(ContentNetIDs.SOLUTION) { }
|
2020-04-08 15:53:15 +05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public override ComponentState GetComponentState()
|
|
|
|
|
|
{
|
|
|
|
|
|
return new SolutionComponentState();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public override void HandleComponentState(ComponentState curState, ComponentState nextState)
|
|
|
|
|
|
{
|
|
|
|
|
|
base.HandleComponentState(curState, nextState);
|
|
|
|
|
|
|
2020-09-09 18:32:31 -04:00
|
|
|
|
if (curState == null)
|
|
|
|
|
|
{
|
2020-04-08 15:53:15 +05:00
|
|
|
|
return;
|
2020-09-09 18:32:31 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// var compState = (SolutionComponentState)curState;
|
|
|
|
|
|
// Is there anything we even need to sync with client?
|
2020-04-08 15:53:15 +05:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|