Show / Hide Table of Contents

Class SetupDemoEnemy

Sets up enemy using demo components. Currently using this component to setup enemy entity. TODO: Revise enemy instantiation and entity assignment.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
SetupDemoEnemy
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(EnemyMotor))]
public class SetupDemoEnemy : MonoBehaviour

Fields

| Improve this Doc View Source

AlliedToPlayer

Declaration
public bool AlliedToPlayer
Field Value
Type Description
Boolean
| Improve this Doc View Source

ClassicSpawnDistanceType

Declaration
public byte ClassicSpawnDistanceType
Field Value
Type Description
Byte
| Improve this Doc View Source

EnemyGender

Declaration
public MobileGender EnemyGender
Field Value
Type Description
MobileGender
| Improve this Doc View Source

EnemyReaction

Declaration
public MobileReactions EnemyReaction
Field Value
Type Description
MobileReactions
| Improve this Doc View Source

EnemyType

Declaration
public MobileTypes EnemyType
Field Value
Type Description
MobileTypes
| Improve this Doc View Source

LightAura

Declaration
public GameObject LightAura
Field Value
Type Description
GameObject

Methods

| Improve this Doc View Source

AlignToGround()

Declaration
public void AlignToGround()
| Improve this Doc View Source

ApplyEnemySettings(EntityTypes, Int32, MobileGender, Boolean, Boolean)

Change enemy settings and configure in a single call.

Declaration
public void ApplyEnemySettings(EntityTypes entityType, int careerIndex, MobileGender gender, bool isHostile = true, bool alliedToPlayer = false)
Parameters
Type Name Description
EntityTypes entityType
Int32 careerIndex
MobileGender gender
Boolean isHostile
Boolean alliedToPlayer
| Improve this Doc View Source

ApplyEnemySettings(MobileGender)

Sets up enemy based on current settings.

Declaration
public void ApplyEnemySettings(MobileGender gender)
Parameters
Type Name Description
MobileGender gender
| Improve this Doc View Source

ApplyEnemySettings(MobileTypes, MobileReactions, MobileGender, Byte, Boolean)

Change enemy settings and configure in a single call.

Declaration
public void ApplyEnemySettings(MobileTypes enemyType, MobileReactions enemyReaction, MobileGender gender, byte classicSpawnDistanceType = 0, bool alliedToPlayer = false)
Parameters
Type Name Description
MobileTypes enemyType

Enemy type.

MobileReactions enemyReaction
MobileGender gender
Byte classicSpawnDistanceType
Boolean alliedToPlayer
| Improve this Doc View Source

GetMobileBillboardChild()

Finds mobile billboard or custom implementation in children.

Declaration
public MobileUnit GetMobileBillboardChild()
Returns
Type Description
MobileUnit

Mobile Unit component.

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