Files
Nitrox/NitroxServer/Resources/PrefabPlaceholderAsset.cs
2025-07-06 00:23:46 +02:00

13 lines
509 B
C#

using System;
using NitroxModel.DataStructures.Unity;
using NitroxServer.GameLogic.Entities;
namespace NitroxServer.Resources;
[Serializable]
/// <summary>
/// Some PrefabPlaceholders spawn GameObjects that are always there (decor, environment ...)
/// And some others spawn a GameObject with an EntitySlot in which case this field is not null.
/// </summary>
public record struct PrefabPlaceholderAsset(string ClassId, NitroxEntitySlot? EntitySlot = null, NitroxTransform Transform = null) : IPrefabAsset;