mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using System;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Robust.Shared.GameObjects
|
|
{
|
|
[RequiresSerializable]
|
|
[Serializable, NetSerializable]
|
|
[Virtual]
|
|
public class ComponentState { }
|
|
|
|
/// <summary>
|
|
/// Interface for components that support delta-states.
|
|
/// </summary>
|
|
public interface IComponentDeltaState
|
|
{
|
|
/// <summary>
|
|
/// Whether this state is a delta or full state.
|
|
/// </summary>
|
|
bool FullState { get; }
|
|
|
|
/// <summary>
|
|
/// This function will apply the current delta state to the provided full state, modifying it in the process.
|
|
/// </summary>
|
|
public void ApplyToFullState(ComponentState fullState);
|
|
|
|
/// <summary>
|
|
/// This function should take in a full state and return a new full state with the current delta applied,
|
|
/// WITHOUT modifying the original input state.
|
|
/// </summary>
|
|
public ComponentState CreateNewFullState(ComponentState fullState);
|
|
}
|
|
}
|