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

Represents a dungeon with its regions.
파일 보기 프로젝트 열기: aura-project/aura 1 사용 예제들

공개 메소드들

메소드 설명
AddBoss ( int raceId, int amount = 1 ) : void

Adds boss to list of bosses to spawn.

AddChest ( Prop chest ) : void

Adds chest to list of chests to spawn.

BossDoorBehavior ( Creature _, Prop prop ) : void

Behavior for this dungeon's boss door.

CheckDoors ( ) : bool

Returns true if all doors except the boss door have been opened.

CheckSectionClear ( ) : void

Checks if any sections have just been cleared, and calls the corresponding script method.

Complete ( ) : void
CompleteManually ( bool val ) : void

Sets whether the dungeon is completed automatically once all bosses have been killed.

If set to false, the dungeon script has to handle calling Complete, otherwise the dungeon won't be completable.

CountPlayers ( ) : int

Returns amount of players in all regions that are part of the dungeon.

Dungeon ( long instanceId, string dungeonName, int itemId, int seed, int floorPlan, Creature creature ) : Aura.Channel.Network.Sending

Creates new dungeon.

GetBossRoomCenter ( ) : Location

Returns the location at the center of the boss room.

GetCreators ( ) : List

Returns creators inside the dungeon. If dungeon has roles, it gets the creators by calling GetActualCreature on the RP characters.

GetCreature ( long entityId ) : Creature

Returns the creature with the given entity id if it could be found in the dungeon's regions, otherwise it returns null.

GetEndRoomCenter ( ) : Location

Returns the location at the center of the end room, behind the boss room.

GetPlayerListScrollMessage ( ) : string

Returns the text for the player location crawler.

GetRoles ( ) : List

Returns dungeon's roles registered with SetRole, sorted by their index. 0 = leader, 1 = first other party member, etc.

GetRpCharacters ( ) : List

Returns all RP characters inside the dungeon.

GetRpCharactersOrCreators ( ) : List

Returns either all RP characters or all creators currently in the dungeon, depending on whether this is an RP dungeon or not.

InitFloorRegion ( int iRegion ) : void

Initiates floor, creating puzzles and props.

InitLobbyRegion ( int iRegion ) : void

Initiates lobby, adding behavior to the stairs and statue.

InitRegions ( ) : void

Initiates regions, spawning props

IsInside ( long entityId ) : bool

Returns true if a creature with the given id is inside this dungeon.

OnPlayerEntersLobby ( Creature creature ) : void

Called when a creature enters the lobby region.

PlayCutscene ( string cutsceneName ) : void

Plays cutscene for all party members.

PlayCutscene ( string cutsceneName, Action onFinish ) : void

Plays cutscene for all party members.

RemoveAllPlayers ( ) : void

Removes all players from dungeon.

SetRole ( int index, string actorName ) : void

Registers a role-playing character.

비공개 메소드들

메소드 설명
CreatePuzzles ( int iRegion ) : void

Calls OnCreate on all of region's puzzles.

GeneratePuzzles ( int iFloor ) : void

Generates random puzzles for the floor.

GenerateRegions ( ) : void

Generates lobby and floor regions.

OnBossDeath ( Creature creature, Creature killer ) : void

Raised when one of the bosses dies.

Rotation ( int direction ) : float

Returns the radian rotation for the given dungeon direction.

TODO: Move somewhere? Direction maybe? Or an extension?

SpawnTreasureChests ( ) : void

Spawns treasure chests in treasure room.

메소드 상세

AddBoss() 공개 메소드

Adds boss to list of bosses to spawn.
public AddBoss ( int raceId, int amount = 1 ) : void
raceId int
amount int
리턴 void

AddChest() 공개 메소드

Adds chest to list of chests to spawn.
public AddChest ( Prop chest ) : void
chest Aura.Channel.World.Entities.Prop
리턴 void

BossDoorBehavior() 공개 메소드

Behavior for this dungeon's boss door.
public BossDoorBehavior ( Creature _, Prop prop ) : void
_ Aura.Channel.World.Entities.Creature
prop Aura.Channel.World.Entities.Prop
리턴 void

CheckDoors() 공개 메소드

Returns true if all doors except the boss door have been opened.
public CheckDoors ( ) : bool
리턴 bool

CheckSectionClear() 공개 메소드

Checks if any sections have just been cleared, and calls the corresponding script method.
public CheckSectionClear ( ) : void
리턴 void

Complete() 공개 메소드

public Complete ( ) : void
리턴 void

CompleteManually() 공개 메소드

Sets whether the dungeon is completed automatically once all bosses have been killed.
If set to false, the dungeon script has to handle calling Complete, otherwise the dungeon won't be completable.
public CompleteManually ( bool val ) : void
val bool
리턴 void

CountPlayers() 공개 메소드

Returns amount of players in all regions that are part of the dungeon.
public CountPlayers ( ) : int
리턴 int

Dungeon() 공개 메소드

Creates new dungeon.
public Dungeon ( long instanceId, string dungeonName, int itemId, int seed, int floorPlan, Creature creature ) : Aura.Channel.Network.Sending
instanceId long
dungeonName string
itemId int
seed int
floorPlan int
creature Aura.Channel.World.Entities.Creature
리턴 Aura.Channel.Network.Sending

GetBossRoomCenter() 공개 메소드

Returns the location at the center of the boss room.
public GetBossRoomCenter ( ) : Location
리턴 Location

GetCreators() 공개 메소드

Returns creators inside the dungeon. If dungeon has roles, it gets the creators by calling GetActualCreature on the RP characters.
public GetCreators ( ) : List
리턴 List

GetCreature() 공개 메소드

Returns the creature with the given entity id if it could be found in the dungeon's regions, otherwise it returns null.
public GetCreature ( long entityId ) : Creature
entityId long
리턴 Aura.Channel.World.Entities.Creature

GetEndRoomCenter() 공개 메소드

Returns the location at the center of the end room, behind the boss room.
public GetEndRoomCenter ( ) : Location
리턴 Location

GetPlayerListScrollMessage() 공개 메소드

Returns the text for the player location crawler.
public GetPlayerListScrollMessage ( ) : string
리턴 string

GetRoles() 공개 메소드

Returns dungeon's roles registered with SetRole, sorted by their index. 0 = leader, 1 = first other party member, etc.
public GetRoles ( ) : List
리턴 List

GetRpCharacters() 공개 메소드

Returns all RP characters inside the dungeon.
public GetRpCharacters ( ) : List
리턴 List

GetRpCharactersOrCreators() 공개 메소드

Returns either all RP characters or all creators currently in the dungeon, depending on whether this is an RP dungeon or not.
public GetRpCharactersOrCreators ( ) : List
리턴 List

InitFloorRegion() 공개 메소드

Initiates floor, creating puzzles and props.
public InitFloorRegion ( int iRegion ) : void
iRegion int
리턴 void

InitLobbyRegion() 공개 메소드

Initiates lobby, adding behavior to the stairs and statue.
public InitLobbyRegion ( int iRegion ) : void
iRegion int
리턴 void

InitRegions() 공개 메소드

Initiates regions, spawning props
public InitRegions ( ) : void
리턴 void

IsInside() 공개 메소드

Returns true if a creature with the given id is inside this dungeon.
public IsInside ( long entityId ) : bool
entityId long
리턴 bool

OnPlayerEntersLobby() 공개 메소드

Called when a creature enters the lobby region.
public OnPlayerEntersLobby ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
리턴 void

PlayCutscene() 공개 메소드

Plays cutscene for all party members.
public PlayCutscene ( string cutsceneName ) : void
cutsceneName string
리턴 void

PlayCutscene() 공개 메소드

Plays cutscene for all party members.
public PlayCutscene ( string cutsceneName, Action onFinish ) : void
cutsceneName string
onFinish Action
리턴 void

RemoveAllPlayers() 공개 메소드

Removes all players from dungeon.
public RemoveAllPlayers ( ) : void
리턴 void

SetRole() 공개 메소드

Registers a role-playing character.
public SetRole ( int index, string actorName ) : void
index int
actorName string
리턴 void