Files
sbox-public/engine/Sandbox.Engine/Scene/Components/Component.Flags.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

60 lines
1.1 KiB
C#

namespace Sandbox;
[Flags]
public enum ComponentFlags
{
None = 0,
/// <summary>
/// Hide this component in component inspector
/// </summary>
Hidden = 1,
/// <summary>
/// Don't save this component to disk
/// </summary>
NotSaved = 2,
/// <summary>
/// There's something wrong with this
/// </summary>
Error = 4,
/// <summary>
/// Loading something
/// </summary>
Loading = 8,// not implemented
/// <summary>
/// Is in the process of deserializing
/// </summary>
Deserializing = 16,
/// <summary>
/// Cannot be edited in the component inspector
/// </summary>
NotEditable = 32, // not implemented
/// <summary>
/// Keep local - don't network this component as part of the scene snapshot
/// </summary>
NotNetworked = 64,
/// <summary>
/// In the process of refreshing from the network
/// </summary>
[Obsolete]
Refreshing = 128,
/// <summary>
/// Don't serialize this component when cloning
/// </summary>
NotCloned = 256,
}
public partial class Component
{
[ActionGraphInclude]
public ComponentFlags Flags { get; set; } = ComponentFlags.None;
}