Game.Tutorials.AreaTriggerFlags
Assembly: Assembly-CSharp
Namespace: Game.Tutorials
Type: public enum (flags)
Base: System.Enum (underlying type: System.Int32)
Summary:
A serializable flags enumeration used by the tutorial/area-trigger system to indicate the state changes for an area trigger. Marked with [Flags] so multiple values can be combined with bitwise operations. The enum defines Created and Modified states; the enum does not define a 0 (None) value, so the default enum value (0) represents no flags set.
Fields
-
Created = 1
Indicates the area trigger was created. -
Modified = 2
Indicates the area trigger was modified.
Properties
- None.
(This is a plain enum; no properties are defined on the enum type.)
Constructors
- None (enums have no user-defined constructors).
Note: The default value for this enum is 0 (no flags set), which is not explicitly defined as a named member.
Methods
- None declared on this enum.
Inherited members from System.Enum/System.ValueType/Object (e.g., ToString, HasFlag via Enum.HasFlag, GetHashCode) are available.
Usage Example
using Game.Tutorials;
// combine flags
AreaTriggerFlags flags = AreaTriggerFlags.Created | AreaTriggerFlags.Modified;
// check if a specific flag is present
bool isModified = (flags & AreaTriggerFlags.Modified) != 0;
// or using Enum.HasFlag (slower boxed version)
bool isCreated = flags.HasFlag(AreaTriggerFlags.Created);
// add a flag
flags |= AreaTriggerFlags.Modified;
// remove a flag
flags &= ~AreaTriggerFlags.Created;
// check for no flags
bool none = flags == 0;