Skip to content

Game.Buildings.TelecomFacilityFlags

Assembly:
Assembly-CSharp.dll (typical location for game code; the enum is defined in the game's compiled code)

Namespace: Game.Buildings

Type: public enum (with [Flags] attribute)

Base: System.Enum (underlying type: byte)

Summary: Bit flags describing runtime state for telecom facility entities. The enum is marked with [Flags], so values are intended to be combined with bitwise operations. Currently it contains a single flag: - HasCoverage: indicates the telecom facility is providing coverage (or has valid coverage data).


Fields

  • HasCoverage = 1 Indicates the telecom facility currently has coverage. Because the enum's underlying type is byte, this flag occupies the 0x01 bit. Additional flags can be added using other bits (2, 4, 8, ...).

Properties

  • None (no properties are defined on this enum)

Constructors

  • None (enums do not declare constructors; the runtime provides the underlying value handling)

Methods

  • None declared on this enum. Use standard System.Enum helpers and bitwise operations (or Enum.HasFlag) to work with the flags at runtime.

Usage Example

// Typical usage of the TelecomFacilityFlags enum
using Game.Buildings;

public class TelecomExample
{
    void Example()
    {
        // Set the flag
        TelecomFacilityFlags flags = TelecomFacilityFlags.HasCoverage;

        // Check the flag (preferred for flags: bitwise test or HasFlag)
        bool hasCoverage = (flags & TelecomFacilityFlags.HasCoverage) != 0;
        // or
        bool hasCoverageAlt = flags.HasFlag(TelecomFacilityFlags.HasCoverage);

        // Clear the flag
        flags &= ~TelecomFacilityFlags.HasCoverage;

        // Toggle the flag
        flags ^= TelecomFacilityFlags.HasCoverage;
    }
}