Game.Prefabs.EventTargetType
Assembly: Assembly-CSharp.dll
Namespace: Game.Prefabs
Type: public enum EventTargetType
Base: System.Enum (underlying type: System.Int32)
Summary:
Enumeration that identifies the type of target associated with an in-game event or prefab reference. Used by the game's event/prefab systems to distinguish what kind of object (building, road, citizen, vehicle, etc.) an event is targeting or referencing.
Fields
-
None = -1
Represents no target or an unspecified/invalid target. -
Building
A building prefab or building instance (residential, commercial, industrial, etc.). -
WildTree
A natural tree or vegetation object (non-player-built foliage). -
Road
A road or road segment prefab/instance. -
MovingCar
A moving vehicle (car) instance — used for events that target dynamic vehicles. -
Citizen
A citizen (individual person) instance. -
TransportDepot
A transport depot/garage (public transport building used as a depot). -
Couple
A paired-citizen target (two-person couple) — used where an event targets a pair rather than a single citizen.
Properties
- (none)
This enum defines named constant values; it has no additional properties.
Constructors
- (none)
Enums have no user-declared constructors. Each named value is implicitly convertible to the underlying integral type (int).
Methods
- (none specific)
Standard System.Enum methods (ToString, HasFlag, etc.) are available for working with enum values.
Usage Example
// Example usage: checking an event target type
EventTargetType target = EventTargetType.Building;
switch (target)
{
case EventTargetType.None:
// handle unspecified target
break;
case EventTargetType.Building:
// handle building-specific logic
break;
case EventTargetType.MovingCar:
// handle vehicle logic
break;
case EventTargetType.Citizen:
// handle citizen logic
break;
// ... other cases ...
default:
// fallback
break;
}