C# Class TShockAPI.DB.WarpManager

Afficher le fichier Open project: NyxStudios/TShock Class Usage Examples

Méthodes publiques

Свойство Type Description
Warps List

Méthodes publiques

Méthode Description
Add ( int x, int y, string name ) : bool

Adds a warp.

Find ( string warpName ) : Warp

Finds the warp with the given name.

Hide ( string warpName, bool state ) : bool

Sets the hidden state of a warp.

Position ( string warpName, int x, int y ) : bool

Sets the position of a warp.

ReloadWarps ( ) : void

Reloads all warps.

Remove ( string warpName ) : bool

Removes a warp.

Private Methods

Méthode Description
FindWarp ( string warpName ) : Warp
WarpManager ( IDbConnection db ) : System

Method Details

Add() public méthode

Adds a warp.
public Add ( int x, int y, string name ) : bool
x int The X position.
y int The Y position.
name string The name.
Résultat bool

Find() public méthode

Finds the warp with the given name.
public Find ( string warpName ) : Warp
warpName string The name.
Résultat Warp

Hide() public méthode

Sets the hidden state of a warp.
public Hide ( string warpName, bool state ) : bool
warpName string The warp name.
state bool The state.
Résultat bool

Position() public méthode

Sets the position of a warp.
public Position ( string warpName, int x, int y ) : bool
warpName string The warp name.
x int The X position.
y int The Y position.
Résultat bool

ReloadWarps() public méthode

Reloads all warps.
public ReloadWarps ( ) : void
Résultat void

Remove() public méthode

Removes a warp.
public Remove ( string warpName ) : bool
warpName string The warp name.
Résultat bool

Property Details

Warps public_oe property

The list of warps.
public List Warps
Résultat List