C# Класс Aura.Channel.World.Dungeons.Puzzles.PuzzlePlace

Place on a tile in a dungeon that contains a part of a puzzle.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddProp ( Aura.Channel.World.Dungeons.Props.DungeonProp prop, Placement positionType ) : void

Adds prop to place.

CloseAllDoors ( ) : void

Closes all doors at this place.

DeclareLock ( bool lockSelf = false ) : void

Makes it a locked place with a locked door.

DeclareLockSelf ( ) : void

Makes it a locked place with a locked door that doesn't need an unlock place.

DeclareUnlock ( PuzzlePlace lockPlace ) : void

This place will precede locked place and contain some means to unlock it.

GetLockDoor ( ) : Door

Returns locked door of this place.

GetPosition ( Placement placement, int border = -1 ) : int[]

Returns position and direction for placement.

GetRoomPosition ( ) : Aura.Channel.World.Dungeons.Generation.Position

Returns the room's position.

GetWorldPosition ( ) : Aura.Channel.World.Dungeons.Generation.Position

Returns the position of the place in world coordinates.

LockPlace ( ) : void

Locks this place.

LockPlace ( Item key ) : void

Locks this place with the given key.

Open ( ) : void

Opens locked place.

OpenAllDoors ( ) : void

Opens all doors at this place.

PuzzlePlace ( Aura.Channel.World.Dungeons.Generation.DungeonFloorSection section, Aura.Channel.World.Dungeons.Puzzles.Puzzle puzzle, string name ) : System.Collections.Generic

Creates new puzzle place.

ReserveDoors ( ) : void

Declares this place to be a room. Doors of this place won't be locked with a key.

ReservePlace ( ) : void

Declares that this place is not to be used by any other puzzles. If we didn't declare this place to be something, reserve random place.

SpawnSingleMob ( string mobGroupName, int raceId, int amount, Placement placement = Placement.Random ) : void

Creates mob in puzzle, in place.

SpawnSingleMob ( string mobGroupName, string mobToSpawn = null, Placement placement = Placement.Random ) : void

Creates mob in puzzle, in this place.

Приватные методы

Метод Описание
AddDoor ( int direction, DungeonBlockType doorType ) : void

Adds door to place.

UpdatePosition ( ) : void

Updates world position of place.

Описание методов

AddProp() публичный Метод

Adds prop to place.
public AddProp ( Aura.Channel.World.Dungeons.Props.DungeonProp prop, Placement positionType ) : void
prop Aura.Channel.World.Dungeons.Props.DungeonProp
positionType Placement
Результат void

CloseAllDoors() публичный Метод

Closes all doors at this place.
public CloseAllDoors ( ) : void
Результат void

DeclareLock() публичный Метод

Makes it a locked place with a locked door.
public DeclareLock ( bool lockSelf = false ) : void
lockSelf bool
Результат void

DeclareLockSelf() публичный Метод

Makes it a locked place with a locked door that doesn't need an unlock place.
public DeclareLockSelf ( ) : void
Результат void

DeclareUnlock() публичный Метод

This place will precede locked place and contain some means to unlock it.
public DeclareUnlock ( PuzzlePlace lockPlace ) : void
lockPlace PuzzlePlace
Результат void

GetLockDoor() публичный Метод

Returns locked door of this place.
Thrown if there is no lock or no door.
public GetLockDoor ( ) : Door
Результат Aura.Channel.World.Dungeons.Props.Door

GetPosition() публичный Метод

Returns position and direction for placement.
public GetPosition ( Placement placement, int border = -1 ) : int[]
placement Placement
border int
Результат int[]

GetRoomPosition() публичный Метод

Returns the room's position.
public GetRoomPosition ( ) : Aura.Channel.World.Dungeons.Generation.Position
Результат Aura.Channel.World.Dungeons.Generation.Position

GetWorldPosition() публичный Метод

Returns the position of the place in world coordinates.
public GetWorldPosition ( ) : Aura.Channel.World.Dungeons.Generation.Position
Результат Aura.Channel.World.Dungeons.Generation.Position

LockPlace() публичный Метод

Locks this place.
public LockPlace ( ) : void
Результат void

LockPlace() публичный Метод

Locks this place with the given key.
public LockPlace ( Item key ) : void
key Item
Результат void

Open() публичный Метод

Opens locked place.
public Open ( ) : void
Результат void

OpenAllDoors() публичный Метод

Opens all doors at this place.
public OpenAllDoors ( ) : void
Результат void

PuzzlePlace() публичный Метод

Creates new puzzle place.
public PuzzlePlace ( Aura.Channel.World.Dungeons.Generation.DungeonFloorSection section, Aura.Channel.World.Dungeons.Puzzles.Puzzle puzzle, string name ) : System.Collections.Generic
section Aura.Channel.World.Dungeons.Generation.DungeonFloorSection
puzzle Aura.Channel.World.Dungeons.Puzzles.Puzzle
name string
Результат System.Collections.Generic

ReserveDoors() публичный Метод

Declares this place to be a room. Doors of this place won't be locked with a key.
public ReserveDoors ( ) : void
Результат void

ReservePlace() публичный Метод

Declares that this place is not to be used by any other puzzles. If we didn't declare this place to be something, reserve random place.
public ReservePlace ( ) : void
Результат void

SpawnSingleMob() публичный Метод

Creates mob in puzzle, in place.
public SpawnSingleMob ( string mobGroupName, int raceId, int amount, Placement placement = Placement.Random ) : void
mobGroupName string Name of the mob, for reference.
raceId int Race to spawn.
amount int Number of monsters to spawn.
placement Placement
Результат void

SpawnSingleMob() публичный Метод

Creates mob in puzzle, in this place.
public SpawnSingleMob ( string mobGroupName, string mobToSpawn = null, Placement placement = Placement.Random ) : void
mobGroupName string Name of the mob, for reference.
mobToSpawn string Mob to spawn (Mob1-3), leave as null for auto select.
placement Placement
Результат void