Files
sbox-public/engine/Sandbox.Engine/Scene/Networking/NetworkSpawnOptions.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

39 lines
1.1 KiB
C#

namespace Sandbox;
/// <summary>
/// Configurable options when spawning a networked object.
/// </summary>
public struct NetworkSpawnOptions()
{
/// <summary>
/// The default network spawn options.
/// </summary>
public static readonly NetworkSpawnOptions Default = new();
/// <summary>
/// What happens to this networked object when its owner disconnects?
/// </summary>
public NetworkOrphaned? OrphanedMode { get; set; }
/// <summary>
/// Who can control the ownership of this networked object?
/// </summary>
public OwnerTransfer? OwnerTransfer { get; set; }
/// <summary>
/// Determines whether updates for this networked object are always transmitted to clients. Otherwise,
/// they are only transmitted when the object is determined as visible to each client.
/// </summary>
public bool? AlwaysTransmit { get; set; }
/// <summary>
/// Should this networked object start enabled?
/// </summary>
public bool StartEnabled { get; set; } = true;
/// <summary>
/// Who should be the owner of this networked object?
/// </summary>
public Connection Owner { get; set; }
}