Game.Rendering.GeneratedType
Assembly: Assembly-CSharp.dll
Namespace: Game.Rendering
Type: public enum GeneratedType
Base: System.Enum
Summary:
An enumeration used by the rendering system to identify categories of generated render data/assets. It indicates whether a given generated resource is absent or belongs to one of the pipeline categories currently recognized by the renderer (NetComposition, ObjectBase). Useful for branching rendering logic, resource creation, or debugging generated content.
Fields
-
None
Represents the absence of any generated type or a default/unknown state. -
NetComposition
Indicates the generated resource is related to network composition (e.g., road/rail/transport network geometry or combined network layers). -
ObjectBase
Indicates the generated resource is related to base object rendering (e.g., props, buildings, or other object-level generated geometry/materials).
Properties
- None
This enum does not declare properties. It inherits standard enum behaviors from System.Enum.
Constructors
- None (implicit)
Enums have an implicit private constructor provided by the runtime; no explicit constructors are defined.
Methods
- Inherited members from System.Enum / System.ValueType / System.Object (e.g., ToString(), HasFlag(), GetValues())
No custom methods are defined on this enum. Use standard enum operations to parse, compare, or switch over values.
Usage Example
// Example: switching behavior based on generated type
void HandleGeneratedResource(Game.Rendering.GeneratedType type)
{
switch (type)
{
case Game.Rendering.GeneratedType.None:
// skip or log missing generated resource
break;
case Game.Rendering.GeneratedType.NetComposition:
// process network-composition-specific generation/render steps
break;
case Game.Rendering.GeneratedType.ObjectBase:
// process object-base generation/render steps
break;
}
}
// Example: storing and checking the value
Game.Rendering.GeneratedType current = Game.Rendering.GeneratedType.NetComposition;
if (current == Game.Rendering.GeneratedType.NetComposition)
{
// apply network composition logic
}