C# 클래스 Aura.Channel.World.CreatureSpawner

Defines area in which certain creatures are spawned, up to a certain amount.
상속: IDisposable
파일 보기 프로젝트 열기: aura-project/aura 1 사용 예제들

공개 메소드들

메소드 설명
CreatureSpawner ( int raceId, int amount, int regionId, int delay, int delayMin, int delayMax, int titles, int coordinates ) : Aura.Channel.Network.Sending

Creates new CreatureSpawner

Dispose ( ) : void

Unsubscribes from spawned creature's disappear events.

Spawn ( ) : void

Spawns as many creatures as necessary to reach this spawn's amount.

비공개 메소드들

메소드 설명
GetRandomPosition ( ) : Point

Returns random spawn position.

IsPointInside ( Point point ) : bool

Returns true if point is within the spawn points.

OnDisappears ( Entity entity ) : void

Called when an NPC created by this spawner disappears, after it was killed.

SpawnOne ( ) : void

Spawns one creature based on this spawners settings.

메소드 상세

CreatureSpawner() 공개 메소드

Creates new CreatureSpawner
public CreatureSpawner ( int raceId, int amount, int regionId, int delay, int delayMin, int delayMax, int titles, int coordinates ) : Aura.Channel.Network.Sending
raceId int Race to spawn
amount int Maximum amount to spawn
regionId int Region to spawn in
delay int Initial spawn delay in seconds
delayMin int Minimum respawn delay in seconds
delayMax int Maximum respawn delay in seconds
titles int List of random titles to apply to creatures
coordinates int Even number of coordinates, specifying the spawn area
리턴 Aura.Channel.Network.Sending

Dispose() 공개 메소드

Unsubscribes from spawned creature's disappear events.
public Dispose ( ) : void
리턴 void

Spawn() 공개 메소드

Spawns as many creatures as necessary to reach this spawn's amount.
public Spawn ( ) : void
리턴 void