Game.FormatTags
Assembly:
Assembly-CSharp
Namespace: Game
Type: enum
Base: System.Int32 (System.Enum)
Summary: FormatTags is an enumeration used by the game to identify named format/features/tags present on content, prefabs, or configuration data. Each member represents a specific feature, fix, resource type or content marker that the game (or mods/tools) can detect and act upon when loading or processing content. Use the named values to make code more readable and robust than relying on raw integer values.
Fields
-
ShortLaneOptimization
Represents content or code paths that relate to a short-lane optimization. Likely used to enable/identify optimizations for lane-related logic. -
HomelessAndWorkerFix
Marks content or compatibility code addressing homeless/worker behavior fixes. -
CompanyAndCargoFix
Indicates fixes or compatibility adjustments related to companies and cargo systems. -
TradeCostFix
Identifies content or patches that change or fix trade cost calculations. -
TerrainSystemCleanup
Represents tags for terrain system cleanup work — e.g., fixes or improved terrain handling. -
FishResource
Marks content that introduces or depends on a fish resource (resource type, prefab, or gameplay feature). -
AquacultureLandAmbience
Tags assets or behaviour related to aquaculture land ambience (sound/visual ambience for aquaculture areas). -
BpPrefabData
Indicates presence of blueprint prefab data (Bp = blueprint) or special prefab metadata. -
ContentPrefabInCityConfiguration
Marks content prefabs that are referenced in city configuration files — ensures they are treated accordingly when loading city configs. -
SeagullAmbience
Tags assets or systems that provide seagull ambience (audio/visual elements). -
BPDLCAchievement
Indicates blueprint/DLC achievement related content or metadata. -
StandingLegOffset
Marks content that requires or includes a standing leg offset adjustment (animation/pose offset for standing entities).
(Underlying values start at 0 and increment by 1 unless explicitly assigned.)
Properties
- None. FormatTags is a plain enum; it does not expose properties.
Constructors
- None (implicit). Enums in C# do not have public constructors; values are defined at compile time.
Methods
- None. No instance methods are defined on the enum type itself beyond those inherited from System.Enum/System.ValueType (ToString, HasFlag, etc.).
Usage Example
// Example: checking a tag value stored as an int or when reading content metadata.
// Assume `tagValue` is an int read from a content file or manifest.
int tagValue = /* read from data */;
Game.FormatTags tag = (Game.FormatTags)tagValue;
switch (tag)
{
case Game.FormatTags.FishResource:
// register fish resource handling
break;
case Game.FormatTags.SeagullAmbience:
// enable seagull ambience for this prefab
break;
default:
// default handling
break;
}
// Example: testing by name (safer than relying on numeric values)
if (Enum.TryParse<Game.FormatTags>("TradeCostFix", out var parsedTag))
{
// use parsedTag
}
// Note: do not depend on specific underlying integer values unless the format
// explicitly documents them. Use enum names for clarity and forward-compatibility.