mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-02 11:28:19 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
31 lines
776 B
C#
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
|
|
}
|