Skip to content

Class: Section_Monsters ​

csharp
public class Section_Monsters : RoomSectionComponent, ILogicUpdate

Fields ​

NameDeclarationDescription
activateCondition`[ShowIf("@combatAreaSettings != SectionCombatAreaType.No", true)]
public CombatAreaActivateCondition activateCondition`
addedInitDelay`[ShowIf("@combatAreaSettings != SectionCombatAreaType.No", true)]
public Vector2 addedInitDelay`
combatAreaSettingspublic SectionCombatAreaType combatAreaSettings
miniBossCount`[ShowIf("@combatAreaSettings != SectionCombatAreaType.No", true)]
public int miniBossCount`
onClearCombatArea`[FoldoutGroup("Events", 0)]
public UnityEvent onClearCombatArea`
onStartCombatArea`[FoldoutGroup("Events", 0)]
public UnityEvent onStartCombatArea`
ruleOverride`[ShowIf("@combatAreaSettings != SectionCombatAreaType.No", true)]
public MonsterSpawnRule ruleOverride`
spawnMiniBossInstead`[ShowIf("@combatAreaSettings != SectionCombatAreaType.No", true)]
public bool spawnMiniBossInstead`
spawnPosOverride`[ShowIf("@combatAreaSettings != SectionCombatAreaType.No", true)]
public Transform spawnPosOverride`

Properties ​

NameDeclarationDescription
didClearCombatAreapublic bool didClearCombatArea { get; set; }Available on server.
isCombatActivepublic bool isCombatActive { get; }Available on server.
isMarkedAsCombatAreapublic bool isMarkedAsCombatArea { get; set; }Available on server.
isOverPopulationpublic bool isOverPopulation { get; }Available on server.
maxPopulationpublic float maxPopulation { get; }
populationpublic float population { get; }Available on server.

Methods ​

Awake() ​

csharp
protected override void Awake()

GetSpawnPositionInSection(Func<Vector3, bool>, DewRandom) ​

Evaluator will be provided raw position without NavMesh, ground or any checks.Position got passed by evaluator might not be returned as result of this function.

csharp
public Vector3 GetSpawnPositionInSection(Func<Vector3, bool> evaluator = null, DewRandom random = null)

Parameters:

NameTypeDescription
evaluatorSystem.Func&lt;T, TResult&gt;&lt;UnityEngine.Vector3,bool&gt;
randomDewRandom

Returns: UnityEngine.Vector3

GetSpawnPositionInSection(float, float, DewRandom) ​

csharp
public Vector3 GetSpawnPositionInSection(float minDist, float maxDist, DewRandom random = null)

Parameters:

NameTypeDescription
minDistfloat
maxDistfloat
randomDewRandom

Returns: UnityEngine.Vector3

Maintained by the Shape of Dreams Modding Community