Salvage dungeons (#14520)

This commit is contained in:
metalgearsloth
2023-03-10 16:41:22 +11:00
committed by GitHub
parent 214ca06997
commit 6157dfa3c0
145 changed files with 24649 additions and 396 deletions

View File

@@ -1,4 +1,5 @@
using Robust.Shared.GameStates;
using Robust.Shared.Noise;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Parallax.Biomes;
@@ -6,6 +7,8 @@ namespace Content.Shared.Parallax.Biomes;
[RegisterComponent, NetworkedComponent]
public sealed class BiomeComponent : Component
{
public FastNoiseLite Noise = new();
[ViewVariables(VVAccess.ReadWrite), DataField("seed")]
public int Seed;
@@ -36,4 +39,10 @@ public sealed class BiomeComponent : Component
/// </summary>
[DataField("loadedChunks")]
public readonly HashSet<Vector2i> LoadedChunks = new();
/// <summary>
/// Are we currently in the process of generating?
/// Used to flag modified tiles without callers having to deal with it.
/// </summary>
public bool Generating = false;
}