Class Monster
Represents all enemy entities in the game.
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
Monster
Assembly: Dew.Core.dll
Syntax
public class Monster : Entity, ILogicUpdate, ICleanup, ICustomDestroyRoutine
Fields
chasePredictiveness
Declaration
[BoxGroup("Monster Settings", true, false, 0)]
public float chasePredictiveness
Field Value
chaseRandomness
Declaration
[BoxGroup("Monster Settings", true, false, 0)]
public float chaseRandomness
Field Value
disableLoot
Declaration
[NonSerialized]
public bool disableLoot
Field Value
type
Declaration
[BoxGroup("Monster Settings", true, false, 0)]
public Monster.MonsterType type
Field Value
Properties
campPosition
Declaration
[SaveVar(SaveVarFlags.Default)]
public Vector3? campPosition { get; }
Property Value
| Type |
Description |
| UnityEngine.Vector3? |
|
defaultOwner
Declaration
protected override DewPlayer defaultOwner { get; }
Property Value
Overrides
isHunter
Declaration
public bool isHunter { get; set; }
Property Value
populationCost
Declaration
public float populationCost { get; set; }
Property Value
spawnPosOverride
Override spawn position for this monster. This has higher priority than all other spawn pos overrides.
Declaration
public virtual Vector3? spawnPosOverride { get; }
Property Value
| Type |
Description |
| UnityEngine.Vector3? |
|
spawnRotOverride
Override spawn rotation for this monster. This has higher priority than all other spawn rot overrides.
Declaration
public virtual Quaternion? spawnRotOverride { get; }
Property Value
| Type |
Description |
| UnityEngine.Quaternion? |
|
Methods
AIUpdate(ref EntityAIContext)
Declaration
protected override void AIUpdate(ref EntityAIContext context)
Parameters
Overrides
GetStaggerSettings()
Declaration
protected override Entity.StaggerSettings GetStaggerSettings()
Returns
Overrides
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroyActor()
Declaration
protected override void OnDestroyActor()
Overrides
OnStartServer()
Declaration
public override void OnStartServer()
Overrides
Implements
Extension Methods