mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-04 02:57:08 +02:00
* adds includedatafields to serv3 * fixes some stuff and adds tests * checks for circular include * fix writing * this one should fix it frfrf * ok now this one is gonna be it i swear * we can save a few operations here * goofy string Co-authored-by: Paul <ritter.paul1@gmail.com>
21 lines
622 B
C#
21 lines
622 B
C#
using System;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Robust.Shared.Serialization.Manager.Attributes;
|
|
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
|
[MeansImplicitAssignment]
|
|
[MeansImplicitUse(ImplicitUseKindFlags.Assign)]
|
|
public sealed class IncludeDataFieldAttribute : DataFieldBaseAttribute
|
|
{
|
|
public IncludeDataFieldAttribute(bool readOnly = false, int priority = 1, bool serverOnly = false,
|
|
Type? customTypeSerializer = null) : base(readOnly, priority, serverOnly, customTypeSerializer)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "[INCLUDE]";
|
|
}
|
|
}
|