Files
sbox-public/engine/Sandbox.Engine/Scene/Networking/NetworkMode.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

31 lines
776 B
C#

namespace Sandbox;
/// <summary>
/// Specifies how a <see cref="GameObject"/> should be networked.
/// </summary>
[Expose]
public enum NetworkMode
{
/// <summary>
/// Never network this <see cref="GameObject"/>.
/// </summary>
[Title( "Never Network" )]
[Icon( "wifi_off" )]
Never,
/// <summary>
/// Network this <see cref="GameObject"/> as a single network object. Objects networked in this
/// way can have an owner, and synchronized properties with <see cref="SyncAttribute"/>.
/// </summary>
[Title( "Network Object" )]
[Icon( "wifi" )]
Object,
/// <summary>
/// Network this <see cref="GameObject"/> to other clients as part of the <see cref="Scene"/> snapshot.
/// </summary>
[Title( "Network Snapshot" )]
[Icon( "network_wifi_2_bar" )]
Snapshot
}