mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
24 lines
865 B
C#
24 lines
865 B
C#
using System.Collections.Generic;
|
|
using Robust.Shared.Serialization;
|
|
using YamlDotNet.RepresentationModel;
|
|
|
|
namespace Robust.Shared.Interfaces.GameObjects
|
|
{
|
|
/// <summary>
|
|
/// Interface used to allow the map loader to override prototype data with map data.
|
|
/// </summary>
|
|
internal interface IEntityLoadContext
|
|
{
|
|
/// <summary>
|
|
/// Gets the serializer used to ExposeData a specific component.
|
|
/// </summary>
|
|
ObjectSerializer GetComponentSerializer(string componentName, YamlMappingNode? protoData);
|
|
|
|
/// <summary>
|
|
/// Gets extra component names that must also be instantiated on top of the ones defined in the prototype,
|
|
/// (and then deserialized with <see cref="GetComponentSerializer"/>)
|
|
/// </summary>
|
|
IEnumerable<string> GetExtraComponentTypes();
|
|
}
|
|
}
|