Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
PrototypeSpawnerEntity Class Reference

Public Attributes

PrototypeMinionEntity minionPrefab
 
float spawnCooldown = 3f
 
- Public Attributes inherited from PrototypeBaseEntity
PrototypeEntityInfo baseInfo
 
PatrolZoneProto patrolZonePrefab
 
Vector2 leftOffset
 
Vector2 rightOffset
 
Transform attackPoint
 
ObjectHealth objectHealth
 
int attackVariant = 0
 

Protected Member Functions

virtual void SpawnEnemy ()
 
override void ChaseState ()
 
override void AwakeMethods ()
 
override void StartMethods ()
 
override void UpdateMethods ()
 
- Protected Member Functions inherited from PrototypeBaseEntity
virtual void DetectHostile ()
 
virtual void ScanAttackRange ()
 
virtual void ScanAttackRangeMultiple ()
 
virtual void FlipSprite (float flipDirection)
 
virtual void MoveLeft ()
 
virtual void MoveRight ()
 
virtual void MaintainMovement ()
 
virtual void StandStill ()
 
virtual void ActivateAttack ()
 
virtual void TriggerAttack ()
 
virtual void StateCheck (EntityState eState)
 
virtual void InitializePatrolZone ()
 
virtual void PatrolState ()
 
virtual void CloseAttackState ()
 
virtual void ProtoCloseAttackState ()
 

Properties

float LivingMinions = 0 [get, set]
 
- Properties inherited from PrototypeBaseEntity
EntityState EState = EntityState.Patrol [get, set]
 
PatrolZoneProto CurrentPatrolZone [get, set]
 

Private Attributes

List< PrototypeMinionEntityminionPool = new List<PrototypeMinionEntity>()
 
Vector3 spawnOffset = new Vector3(0f, 0.5f, 0f)
 
float minionLimit = 4
 
float spawnCooldownEndTime = 0f
 

Additional Inherited Members

- Protected Attributes inherited from PrototypeBaseEntity
Rigidbody2D rb
 
Animator animator
 
float horizontalDirection
 
Collider2D currentHitObject
 
PrototypeEntityChecks entityBools
 

Member Function Documentation

◆ AwakeMethods()

override void PrototypeSpawnerEntity.AwakeMethods ( )
protectedvirtual

Reimplemented from PrototypeBaseEntity.

◆ ChaseState()

override void PrototypeSpawnerEntity.ChaseState ( )
protectedvirtual

Reimplemented from PrototypeBaseEntity.

◆ SpawnEnemy()

virtual void PrototypeSpawnerEntity.SpawnEnemy ( )
protectedvirtual

◆ StartMethods()

override void PrototypeSpawnerEntity.StartMethods ( )
protectedvirtual

Reimplemented from PrototypeBaseEntity.

◆ UpdateMethods()

override void PrototypeSpawnerEntity.UpdateMethods ( )
protectedvirtual

Reimplemented from PrototypeBaseEntity.

Member Data Documentation

◆ minionLimit

float PrototypeSpawnerEntity.minionLimit = 4
private

◆ minionPool

List<PrototypeMinionEntity> PrototypeSpawnerEntity.minionPool = new List<PrototypeMinionEntity>()
private

◆ minionPrefab

PrototypeMinionEntity PrototypeSpawnerEntity.minionPrefab

◆ spawnCooldown

float PrototypeSpawnerEntity.spawnCooldown = 3f

◆ spawnCooldownEndTime

float PrototypeSpawnerEntity.spawnCooldownEndTime = 0f
private

◆ spawnOffset

Vector3 PrototypeSpawnerEntity.spawnOffset = new Vector3(0f, 0.5f, 0f)
private

Property Documentation

◆ LivingMinions

float PrototypeSpawnerEntity.LivingMinions = 0
getset

The documentation for this class was generated from the following file: