Skip to content

Game.Tools.ZoningFlags

Assembly:
Game (assembly name inferred; adjust if different)

Namespace: Game.Tools

Type:
public enum ZoningFlags : uint

Base:
System.Enum (underlying type: System.UInt32)

Summary:
Flags enum used by the zoning tool to describe which zoning operations or selection modes are active. The [Flags] attribute allows bitwise combination of these values so multiple behaviors can be specified at once (for example, Zone | Overwrite). Typical uses are controlling whether the tool performs flood-fill, marquee selection, applies zoning, removes zoning, paints, or overwrites existing zones.


Fields

  • FloodFill
    Value: 1u
    Indicates a flood-fill style operation (apply the action to a contiguous region).

  • Marquee
    Value: 2u
    Indicates a marquee/rectangle selection mode.

  • Zone
    Value: 4u
    Indicates setting/applying zone(s).

  • Dezone
    Value: 8u
    Indicates removing zone(s).

  • Paint
    Value: 0x10u (16)
    Indicates a paint-like mode for applying zoning continuously as the cursor moves.

  • Overwrite
    Value: 0x20u (32)
    Indicates existing zones should be overwritten when applying new zoning.

Properties

  • (none)
    This enum exposes no properties.

Constructors

  • public ZoningFlags()
    Enums do not define custom constructors. The default underlying value is 0 (no flags set).

Methods

  • (none)
    No methods are defined on this enum. Use standard enum/bitwise operations to combine and test flags.

Usage Example

// Combine flags: apply zoning in paint mode and overwrite existing zones
ZoningFlags flags = ZoningFlags.Zone | ZoningFlags.Paint | ZoningFlags.Overwrite;

// Test for a specific flag
bool willOverwrite = (flags & ZoningFlags.Overwrite) != 0;

// Using HasFlag (less efficient than bitwise test)
bool isZone = flags.HasFlag(ZoningFlags.Zone);