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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user