Гойда

This commit is contained in:
Aviu00
2024-01-18 10:52:41 +03:00
parent 587195e7dd
commit 7bfdbf7d47
8 changed files with 12 additions and 15 deletions

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Utility;
namespace Content.Server.Worldgen.Components;
[RegisterComponent]
public sealed class BlueprintPlacerComponent : Component
public sealed partial class BlueprintPlacerComponent : Component
{
[DataField("blueprint", required: true, customTypeSerializer: typeof(ResPathSerializer))]
public ResPath Blueprint = default!;
@@ -15,7 +15,7 @@ public sealed class BlueprintPlacerComponent : Component
/// The components that get added to the target grid.
/// </summary>
[DataField("components", required: true)]
public ComponentRegistry Components { get; } = default!;
public ComponentRegistry Components { get; set; } = default!;
//TODO: Get someone to make this a method on componentregistry that does it Correctly.
/// <summary>

View File

@@ -2,7 +2,7 @@ namespace Content.Server.Worldgen;
[RegisterComponent]
public sealed class StructurePlacementComponent : Component
public sealed partial class StructurePlacementComponent : Component
{
/// <summary>
/// The structures to place into the world.
@@ -21,7 +21,7 @@ public sealed class StructurePlacementComponent : Component
/// A single structure's placement config.
/// </summary>
[DataDefinition]
public sealed class StructureConfig
public sealed partial class StructureConfig
{
/// <summary>
/// The entity to spawn into the world.

View File

@@ -1,4 +1,5 @@
using System.Linq;
using System.Numerics;
using Content.Server.Administration.Logs;
using Content.Server.Worldgen.Components;
using Content.Server.Worldgen.Tools;