first commit
This commit is contained in:
12
NitroxServer/Resources/PrefabPlaceholderAsset.cs
Normal file
12
NitroxServer/Resources/PrefabPlaceholderAsset.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
Reference in New Issue
Block a user