Метод | Описание | |
---|---|---|
AddBoss ( int raceId, int amount = 1 ) : void |
Adds boss to list of bosses to spawn.
|
|
AddChest ( |
Adds chest to list of chests to spawn.
|
|
BossDoorBehavior ( |
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, |
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 ) : |
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 ( |
Called when a creature enters the lobby region.
|
|
PlayCutscene ( string cutsceneName ) : void |
Plays cutscene for all party members.
|
|
PlayCutscene ( string cutsceneName, Action |
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 ( |
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.
|
public AddBoss ( int raceId, int amount = 1 ) : void | ||
raceId | int | |
amount | int | |
Результат | void |
public AddChest ( |
||
chest | ||
Результат | void |
public BossDoorBehavior ( |
||
_ | ||
prop | ||
Результат | void |
public CompleteManually ( bool val ) : void | ||
val | bool | |
Результат | void |
public Dungeon ( long instanceId, string dungeonName, int itemId, int seed, int floorPlan, |
||
instanceId | long | |
dungeonName | string | |
itemId | int | |
seed | int | |
floorPlan | int | |
creature | ||
Результат | Aura.Channel.Network.Sending |
public GetCreature ( long entityId ) : |
||
entityId | long | |
Результат |
public GetPlayerListScrollMessage ( ) : string | ||
Результат | string |
public GetRpCharactersOrCreators ( ) : List |
||
Результат | List |
public InitFloorRegion ( int iRegion ) : void | ||
iRegion | int | |
Результат | void |
public InitLobbyRegion ( int iRegion ) : void | ||
iRegion | int | |
Результат | void |
public OnPlayerEntersLobby ( |
||
creature | ||
Результат | void |
public PlayCutscene ( string cutsceneName ) : void | ||
cutsceneName | string | |
Результат | void |
public PlayCutscene ( string cutsceneName, Action |
||
cutsceneName | string | |
onFinish | Action |
|
Результат | void |
public SetRole ( int index, string actorName ) : void | ||
index | int | |
actorName | string | |
Результат | void |