Added ContainerSpawnPoint check for integration test (#25446)

* Added logic for ContainerSpawnPoint checks

* Improved with template function

* fixed nullable

* hehe

* hehe T?

* added type check before cast

* another nullable fix

* and another one

* return to old code (found typo)

* Code cleanup

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
778b
2024-02-25 17:54:44 +04:00
committed by GitHub
parent 1de102d08e
commit 87def406bc
4 changed files with 44 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Spawners.Components;
/// </summary>
[RegisterComponent]
[Access(typeof(ContainerSpawnPointSystem))]
public sealed partial class ContainerSpawnPointComponent : Component
public sealed partial class ContainerSpawnPointComponent : Component, ISpawnPoint
{
/// <summary>
/// The ID of the container that this entity will spawn players into
@@ -26,5 +26,5 @@ public sealed partial class ContainerSpawnPointComponent : Component
/// The type of spawn point
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public SpawnPointType SpawnType = SpawnPointType.Unset;
public SpawnPointType SpawnType { get; set; } = SpawnPointType.Unset;
}