Show / Hide Table of Contents

Class PopulationManager

Manages a pool of civilian mobiles (wandering NPCs) for the local town environment. Attached to the same GameObject as DaggerfallLocation and CityNavigation by environment layout process in StreamingWorld.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
PopulationManager
Namespace: DaggerfallWorkshop.Game.Utility
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(DaggerfallLocation))]
[RequireComponent(typeof(CityNavigation))]
public class PopulationManager : MonoBehaviour

Properties

| Improve this Doc View Source

MaxPopulation

Gets max population calculated for this location.

Declaration
public int MaxPopulation { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

PopulationPool

Declaration
public List<PopulationManager.PoolItem> PopulationPool { get; }
Property Value
Type Description
List<PopulationManager.PoolItem>

Events

| Improve this Doc View Source

OnMobileNPCCreate

Declaration
public static event PopulationManager.OnMobileNPCCreateHandler OnMobileNPCCreate
Event Type
Type Description
PopulationManager.OnMobileNPCCreateHandler
| Improve this Doc View Source

OnMobileNPCDisable

Declaration
public static event PopulationManager.OnMobileNPCDisableHandler OnMobileNPCDisable
Event Type
Type Description
PopulationManager.OnMobileNPCDisableHandler
| Improve this Doc View Source

OnMobileNPCEnable

Declaration
public static event PopulationManager.OnMobileNPCEnableHandler OnMobileNPCEnable
Event Type
Type Description
PopulationManager.OnMobileNPCEnableHandler

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX