Game.Triggers.ChirpFlags
Assembly: Assembly-CSharp.dll
Namespace: Game.Triggers
Type: public enum (with [Flags] attribute)
Base: System.Enum (underlying type: byte)
Summary:
ChirpFlags is a small flags-style enumeration used to mark metadata about a "chirp" (in-game short message). It is declared with the [Flags] attribute and uses a byte as its underlying storage. Currently it defines a single flag (Liked) that indicates the chirp has been liked. The enum is intended for bitwise combination and testing so additional flags may be added later.
Fields
Liked = 1
Represents that the chirp has been "liked". Because the enum is marked with [Flags], this value can be combined with other flags (if added later). The underlying storage is a byte; a value of 0 (no bits set) represents no flags.
Properties
- None specific to this enum.
Enums have an underlying auto-generated integer field (value__) but no user-defined properties. Use System.Enum helper methods or bitwise operators to inspect/modify values.
Constructors
- None accessible / none defined.
As with all enums, there is no user-callable constructor — the enum values are constants. The default value (0) corresponds to no flags set.
Methods
- No methods are defined on this enum type.
Use standard System.Enum methods (e.g., ToString(), HasFlag()) or C# bitwise operators to work with flags.
Usage Example
// Mark a chirp as liked
Game.Triggers.ChirpFlags flags = Game.Triggers.ChirpFlags.Liked;
// Check if liked using HasFlag
bool isLiked = flags.HasFlag(Game.Triggers.ChirpFlags.Liked);
// Check using bitwise operator
bool isLiked2 = (flags & Game.Triggers.ChirpFlags.Liked) != 0;
// Toggle the liked flag
flags ^= Game.Triggers.ChirpFlags.Liked;
// Clear the liked flag
flags &= (Game.Triggers.ChirpFlags)~(byte)Game.Triggers.ChirpFlags.Liked;
Additional notes: - Because the enum is backed by byte, cast carefully when performing bitwise negation or combining with numeric literals. - The [Flags] attribute improves readability of combined values when calling ToString() (e.g., combined flags are shown as "FlagA, FlagB").