C# Class Aura.Channel.World.SpawnManager

ファイルを表示 Open project: aura-project/aura

Public Methods

Method Description
Add ( CreatureSpawner spawner ) : void

Adds spawner to manager.

Clear ( ) : void

Disposes and removes all spawners.

Get ( int spawnerId ) : CreatureSpawner

Returns spawn with given id or null if it doesn't exist.

Spawn ( int raceId, int regionId, int x, int y, bool active, bool effect ) : NPC

Spawns a creature.

SpawnAll ( ) : void

Calls Spawn on all of the manager's spawners.

SpawnManager ( ) : Aura.Channel.Network.Sending

Creates new spawn manager.

Method Details

Add() public method

Adds spawner to manager.
public Add ( CreatureSpawner spawner ) : void
spawner CreatureSpawner
return void

Clear() public method

Disposes and removes all spawners.
public Clear ( ) : void
return void

Get() public method

Returns spawn with given id or null if it doesn't exist.
public Get ( int spawnerId ) : CreatureSpawner
spawnerId int
return CreatureSpawner

Spawn() public method

Spawns a creature.
public Spawn ( int raceId, int regionId, int x, int y, bool active, bool effect ) : NPC
raceId int
regionId int
x int
y int
active bool
effect bool
return Aura.Channel.World.Entities.NPC

SpawnAll() public method

Calls Spawn on all of the manager's spawners.
public SpawnAll ( ) : void
return void

SpawnManager() public method

Creates new spawn manager.
public SpawnManager ( ) : Aura.Channel.Network.Sending
return Aura.Channel.Network.Sending