C# 클래스 Aura.Channel.World.Dungeons.DungeonManager

Manages dynamic regions.
파일 보기 프로젝트 열기: aura-project/aura

공개 메소드들

메소드 설명
CheckDrop ( Creature creature, Item item ) : bool

Checks if creature is able to enter a dungeon with the given item, at his current position, if so, a dungeon is created and the party is moved inside.

CreateDungeonAndWarp ( string dungeonName, int itemId, Creature leader ) : bool

Creates a dungeon with the given parameters and warps the creature's party inside.

DungeonManager ( ) : Aura.Channel.Network.Sending

Creates new dungeon manager.

GetInstanceId ( ) : long

Generates and reserves a new dungeon instance id.

GetRegionId ( ) : int

Generates and reserves a new dungeon region id.

비공개 메소드들

메소드 설명
CreateDungeon ( string dungeonName, int itemId, Creature creature ) : Dungeon

Generates instance id and creates dungeon.

Get ( bool>.Func predicate ) : Dungeon

Returns first dungeon that matches the predicate, or null.

OnMabiTick ( ErinnTime time ) : void

Raised every 5 minutes, removes empty dungeons.

TODO: Is removing on MabiTick what we want? How long do dungeons stay active before they're removed? This could remove a dungeon the minute, even the second, the last player leaves it.

Remove ( long instanceId ) : bool

Removes dungeon with given instance id, incl all regions.

메소드 상세

CheckDrop() 공개 메소드

Checks if creature is able to enter a dungeon with the given item, at his current position, if so, a dungeon is created and the party is moved inside.
public CheckDrop ( Creature creature, Item item ) : bool
creature Aura.Channel.World.Entities.Creature
item Item
리턴 bool

CreateDungeonAndWarp() 공개 메소드

Creates a dungeon with the given parameters and warps the creature's party inside.
public CreateDungeonAndWarp ( string dungeonName, int itemId, Creature leader ) : bool
dungeonName string
itemId int
leader Aura.Channel.World.Entities.Creature
리턴 bool

DungeonManager() 공개 메소드

Creates new dungeon manager.
public DungeonManager ( ) : Aura.Channel.Network.Sending
리턴 Aura.Channel.Network.Sending

GetInstanceId() 공개 메소드

Generates and reserves a new dungeon instance id.
public GetInstanceId ( ) : long
리턴 long

GetRegionId() 공개 메소드

Generates and reserves a new dungeon region id.
public GetRegionId ( ) : int
리턴 int