Skip to content

Game.PostVanRequestFlags

Assembly:
Namespace: Game.Simulation

Type: public enum (flags)

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

Summary:
Bitwise flags used to describe the type and target of a post-van request in the game's simulation. Marked with the [Flags] attribute so values can be combined to represent requests that have multiple characteristics (for example, a delivery to a building). Each enum value maps to a single bit within a byte.


Fields

  • Deliver = 1
    Indicates the request is for delivering mail or parcels.

  • Collect = 2
    Indicates the request is for collecting outgoing mail or items.

  • BuildingTarget = 4
    Specifies that the target of the request is a building.

  • MailBoxTarget = 8
    Specifies that the target of the request is a mailbox.

Properties

  • (none)
    This enum exposes no properties.

Constructors

  • (none)
    Enums do not define constructors in typical use; values are the defined named constants.

Methods

  • (none)
    No methods are defined on the enum type itself. Use standard bitwise operations to work with flags.

Usage Example

// Create a request that is a delivery to a building
PostVanRequestFlags flags = PostVanRequestFlags.Deliver | PostVanRequestFlags.BuildingTarget;

// Check if the request includes collection
bool isCollect = (flags & PostVanRequestFlags.Collect) != 0;

// Check if the request targets a mailbox
bool isMailboxTarget = (flags & PostVanRequestFlags.MailBoxTarget) != 0;

// Add the Collect flag to an existing request
flags |= PostVanRequestFlags.Collect;

// Remove the Deliver flag
flags &= ~PostVanRequestFlags.Deliver;