serv5 datadef fixes (#44531)

This commit is contained in:
metalgearsloth 2026-07-08 22:23:54 +10:00 • committed by GitHub
parent 722e18efc3
commit 0ed92bbd8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 14 additions and 7 deletions

View file

@ -9,7 +9,8 @@ namespace Content.Shared.Atmos;
/// Use the public APIs in <see cref="SharedAtmosphereSystem"/> instead.
/// </summary>
[Access(typeof(SharedAtmosphereSystem), typeof(SharedGasTileOverlaySystem), typeof(SharedAtmosDebugOverlaySystem))]
public sealed class TileAtmosphere : IGasMixtureHolder
[DataDefinition]
public sealed partial class TileAtmosphere : IGasMixtureHolder
{
/// <summary>
/// The last cycle this tile's air was archived into <see cref="AirArchived"/>.

View file

@ -132,6 +132,7 @@ public sealed partial class ChangelingIdentityData
/// A net-serializable version of <see cref="ChangelingIdentityData"/> used for networking purposes.
/// It needs to be like this because EntityUid cannot be networked, so we convert it to NetEntity and send it over to the client using this class.
/// </summary>
[DataDefinition]
[Serializable, NetSerializable]
public sealed partial class ChangelingNetworkedIdentityData
{

View file

@ -7,7 +7,8 @@ namespace Content.Shared.DeviceLinking;
/// <summary>
/// A prototype for a device port, for use with device linking.
/// </summary>
public abstract class DevicePortPrototype
[DataDefinition]
public abstract partial class DevicePortPrototype
{
[IdDataField]
public string ID { get; private set; } = default!;

View file

@ -140,7 +140,8 @@ public abstract partial class EntityCondition
/// </summary>
/// <param name="Condition">The Condition we're checking</param>
[ByRefEvent]
public record struct EntityConditionEvent<T>(T Condition) where T : EntityConditionBase<T>
[DataRecord]
public partial record struct EntityConditionEvent<T>(T Condition) where T : EntityConditionBase<T>
{
/// <summary>
/// The result of our check, defaults to false if nothing handles it.

View file

@ -9,8 +9,8 @@ public sealed partial class GuideEntryPrototype : GuideEntry, IPrototype
public string ID => Id;
}
[Virtual]
public class GuideEntry
[Virtual, DataDefinition]
public partial class GuideEntry
{
/// <summary>
/// The file containing the contents of this guide.

View file

@ -6,8 +6,9 @@ namespace Content.Shared.StationRecords;
/// <summary>
/// General station record. Indicates the crewmember's name and job.
/// </summary>
[DataDefinition]
[Serializable, NetSerializable]
public sealed record GeneralStationRecord
public sealed partial record GeneralStationRecord
{
/// <summary>
/// Name tied to this station record.

View file

@ -6,7 +6,8 @@ namespace Content.Shared.StationRecords;
/// This refers to both the id and station. This is suitable for an access reader field etc,
/// but when you already know the station just store the id itself.
/// </summary>
public readonly struct StationRecordKey : IEquatable<StationRecordKey>
[DataRecord]
public readonly partial struct StationRecordKey : IEquatable<StationRecordKey>
{
[DataField]
public readonly uint Id;

View file

@ -88,6 +88,7 @@ public partial class StatusIconData : IComparable<StatusIconData>
/// <summary>
/// <see cref="StatusIconData"/> but in new convenient prototype form!
/// </summary>
[DataDefinition]
public abstract partial class StatusIconPrototype : StatusIconData, IPrototype
{
/// <inheritdoc/>