mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
serv5 datadef fixes (#44531)
This commit is contained in:
parent
722e18efc3
commit
0ed92bbd8a
8 changed files with 14 additions and 7 deletions
|
|
@ -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"/>.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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!;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue