Game.Prefabs.ActivityType
Assembly: Assembly-CSharp.dll
Namespace: Game.Prefabs
Type: public enum
Base: System.Enum
Summary:
Enumeration of possible activity/animation states used by prefabs/agents (citizens, vehicles, objects) to represent what they are doing (idle, movement, exercises, interactions, etc.). The first value (None) is the default/invalid state.
Fields
-
ActivityType.None
Represents no activity / default state (value 0). -
ActivityType.Standing
Agent is standing idle. -
ActivityType.Walking
Agent is walking. -
ActivityType.Running
Agent is running. -
ActivityType.BenchSitting
Agent is sitting on a bench. -
ActivityType.GroundSitting
Agent is sitting on the ground. -
ActivityType.GroundLaying
Agent is lying down on the ground. -
ActivityType.Selfies
Agent is taking selfies / performing selfie animation. -
ActivityType.Swimming
Agent is swimming. -
ActivityType.Flying
Agent or entity is flying (used for flying vehicles/units). -
ActivityType.Enter
Agent is in the process of entering a building/vehicle/area. -
ActivityType.Exit
Agent is exiting a building/vehicle/area. -
ActivityType.GarageSpot
Agent/vehicle is in a garage/spot-related state (e.g., parking or stored in garage). -
ActivityType.Producing
Agent/object is producing goods or performing a production activity. -
ActivityType.Driving
Agent is driving a vehicle. -
ActivityType.PushUps
Agent is performing push-up exercise animation. -
ActivityType.PullUps
Agent is performing pull-up exercise animation. -
ActivityType.SitUps
Agent is performing sit-up exercise animation. -
ActivityType.JumpingJacks
Agent is performing jumping jacks. -
ActivityType.JumpingLunges
Agent is performing jumping lunges. -
ActivityType.Squats
Agent is performing squats. -
ActivityType.Mood
Agent is expressing/playing a mood animation (emotes). -
ActivityType.Yoga
Agent is performing yoga poses/animation.
Properties
- None — this type is a plain enum and does not expose properties. Use the enum values directly.
Constructors
- Implicit default constructor (enum) — the underlying value type constructor is provided by the runtime. The default value is
ActivityType.None
(0).
Methods
- None declared on this enum. Standard System.Enum methods are available (ToString, HasFlag, Parse, TryParse, GetValues, etc.).
Usage Example
// Assign an activity
ActivityType current = ActivityType.Walking;
// Check activity
if (current == ActivityType.BenchSitting) {
// run bench-sitting logic
}
// Switch to handle behavior
switch (current) {
case ActivityType.Walking:
// update walking animation / movement speed
break;
case ActivityType.Swimming:
// enable swimming logic
break;
case ActivityType.None:
default:
// idle/default handling
break;
}