Description
The ComponentFlags.Refreshing
field is a member of the ComponentFlags
enumeration in the Sandbox namespace. It indicates that a component is currently in the process of refreshing its state from the network. This flag can be used to manage or track the state of components that require network synchronization.
Usage
Use the ComponentFlags.Refreshing
flag when you need to mark a component as being in the process of refreshing from the network. This can be useful for handling network updates or ensuring that certain operations are only performed when a component is fully synchronized.
Example
// Example of using ComponentFlags.Refreshing
public class NetworkComponent : Component
{
public void RefreshFromNetwork()
{
// Set the component's flags to indicate it is refreshing
this.Flags |= ComponentFlags.Refreshing;
// Perform network refresh logic here
// Once done, clear the refreshing flag
this.Flags &= ~ComponentFlags.Refreshing;
}
}