Game.Simulation.GarbageTransferRequestFlags
Assembly:
Assembly-CSharp (likely Assembly-CSharp.dll — part of the game's managed assemblies)
Namespace:
Game.Simulation
Type:
enum (flags)
Base:
System.Enum (underlying type: System.UInt16 / ushort)
Summary:
A bitmask enum used to describe the requested behavior for garbage transfer requests in the simulation. The enum is decorated with [Flags], so multiple values can be combined to express compound requirements (e.g., a request that both delivers and requires transport). Typical uses include marking whether a request is for delivering or receiving goods, and whether it requires transport by vehicles.
Fields
-
Deliver = 1
Flag indicating the request is for delivering (sending) garbage/items from a source. -
Receive = 2
Flag indicating the request is for receiving garbage/items at a destination. -
RequireTransport = 4
Flag indicating the request requires transport (i.e., needs vehicles to move the items).
Properties
- (none)
This enum does not define properties.
Constructors
- (none)
Enums do not expose constructors in typical usage.
Methods
- (none)
The enum itself adds no methods. Consumers will typically use bitwise operations or Enum.HasFlag to inspect combined flags.
Usage Example
// Create a request that both delivers and requires transport
var flags = Game.Simulation.GarbageTransferRequestFlags.Deliver | Game.Simulation.GarbageTransferRequestFlags.RequireTransport;
// Check if the request requires transport
bool needsTransport = (flags & Game.Simulation.GarbageTransferRequestFlags.RequireTransport) != 0;
// or using Enum.HasFlag
bool needsTransport2 = flags.HasFlag(Game.Simulation.GarbageTransferRequestFlags.RequireTransport);
// Create a receive-only request
var receiveOnly = Game.Simulation.GarbageTransferRequestFlags.Receive;
Additional notes: - Because this enum is marked with [Flags], prefer combining values with bitwise OR (|) and testing with bitwise AND (&) or HasFlag for clarity. - The underlying type is ushort, so values are limited to 16 bits.