mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 17:47:24 +02:00
52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Immutable;
|
|
using Robust.Shared.Serialization.Markdown;
|
|
using Robust.Shared.Serialization.Markdown.Mapping;
|
|
using Robust.Shared.Serialization.Markdown.Validation;
|
|
|
|
namespace Robust.Shared.Serialization.Manager.Definition;
|
|
|
|
//todo paul make these use the mngr delegates
|
|
[Obsolete("Used only in source generation")]
|
|
internal delegate void CopyDelegateSignature<T>(
|
|
T source,
|
|
ref T target,
|
|
SerializationHookContext hookCtx,
|
|
ISerializationContext? context);
|
|
|
|
[Obsolete("Used only in source generation")]
|
|
internal delegate void PopulateDelegateSignature<T>(
|
|
ref T target,
|
|
MappingDataNode mappingDataNode,
|
|
ISerializationManager serialization,
|
|
SerializationHookContext hookCtx,
|
|
ISerializationContext? context
|
|
);
|
|
|
|
[Obsolete("Used only in source generation")]
|
|
internal delegate void SerializeDelegateSignature<T>(
|
|
T obj,
|
|
MappingDataNode mapping,
|
|
ISerializationManager serialization,
|
|
ISerializationContext? context,
|
|
bool alwaysWrite,
|
|
ImmutableDictionary<string, object?> defaultValues
|
|
);
|
|
|
|
[Obsolete("Used only in source generation")]
|
|
internal delegate bool EqualDelegateSignature<T>(
|
|
T left,
|
|
T right,
|
|
ISerializationManager serialization,
|
|
ISerializationContext? context
|
|
);
|
|
|
|
[Obsolete("Used only in source generation")]
|
|
internal delegate void ValidateAllFieldsDelegate(
|
|
Dictionary<string, ValidationNode> nodes,
|
|
MappingDataNode node,
|
|
ISerializationManager serialization,
|
|
ISerializationContext? context = null
|
|
);
|