C# Class Regions.RegionManager

Afficher le fichier Open project: NyxStudios/Regions

Méthodes publiques

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

Méthodes publiques

Méthode Description
AddNewUser ( string regionName, String userName ) : bool
AddRegion ( int tx, int ty, int width, int height, string regionname, string owner, string worldid, int z ) : bool
AllowGroup ( string regionName, string groups ) : bool
CanBuild ( int x, int y, TShockAPI.TSPlayer ply ) : bool
ChangeOwner ( string regionName, string newOwner ) : bool
DeleteRegion ( string name ) : bool
GetRegionByName ( String name ) : Region
GetTopRegion ( List regions ) : Region
InArea ( int x, int y ) : bool
InAreaRegion ( int x, int y ) : List
InAreaRegionName ( int x, int y ) : List
ListAllRegions ( string worldid ) : List

Gets all the regions names from world

ListIDs ( string MergedIDs ) : List
RegionManager ( IDbConnection db ) : System
ReloadAllRegions ( ) : void
ReloadForUnitTest ( String n ) : void
RemoveGroup ( string regionName, string group ) : bool
RemoveUser ( string regionName, string userName ) : bool
SetRegionState ( string name, bool state ) : bool
SetRegionStateTest ( string name, string world, bool state ) : bool
SetZ ( string name, int z ) : bool
ZacksGetRegionByName ( String name ) : Region
resizeRegion ( string regionName, int addAmount, int direction ) : bool

Method Details

AddNewUser() public méthode

public AddNewUser ( string regionName, String userName ) : bool
regionName string
userName String
Résultat bool

AddRegion() public méthode

public AddRegion ( int tx, int ty, int width, int height, string regionname, string owner, string worldid, int z ) : bool
tx int
ty int
width int
height int
regionname string
owner string
worldid string
z int
Résultat bool

AllowGroup() public méthode

public AllowGroup ( string regionName, string groups ) : bool
regionName string
groups string
Résultat bool

CanBuild() public méthode

public CanBuild ( int x, int y, TShockAPI.TSPlayer ply ) : bool
x int
y int
ply TShockAPI.TSPlayer
Résultat bool

ChangeOwner() public méthode

public ChangeOwner ( string regionName, string newOwner ) : bool
regionName string
newOwner string
Résultat bool

DeleteRegion() public méthode

public DeleteRegion ( string name ) : bool
name string
Résultat bool

GetRegionByName() public méthode

public GetRegionByName ( String name ) : Region
name String
Résultat Region

GetTopRegion() public méthode

public GetTopRegion ( List regions ) : Region
regions List
Résultat Region

InArea() public méthode

public InArea ( int x, int y ) : bool
x int
y int
Résultat bool

InAreaRegion() public méthode

public InAreaRegion ( int x, int y ) : List
x int
y int
Résultat List

InAreaRegionName() public méthode

public InAreaRegionName ( int x, int y ) : List
x int
y int
Résultat List

ListAllRegions() public méthode

Gets all the regions names from world
public ListAllRegions ( string worldid ) : List
worldid string World name to get regions from
Résultat List

ListIDs() public static méthode

public static ListIDs ( string MergedIDs ) : List
MergedIDs string
Résultat List

RegionManager() public méthode

public RegionManager ( IDbConnection db ) : System
db IDbConnection
Résultat System

ReloadAllRegions() public méthode

public ReloadAllRegions ( ) : void
Résultat void

ReloadForUnitTest() public méthode

public ReloadForUnitTest ( String n ) : void
n String
Résultat void

RemoveGroup() public méthode

public RemoveGroup ( string regionName, string group ) : bool
regionName string
group string
Résultat bool

RemoveUser() public méthode

public RemoveUser ( string regionName, string userName ) : bool
regionName string
userName string
Résultat bool

SetRegionState() public méthode

public SetRegionState ( string name, bool state ) : bool
name string
state bool
Résultat bool

SetRegionStateTest() public méthode

public SetRegionStateTest ( string name, string world, bool state ) : bool
name string
world string
state bool
Résultat bool

SetZ() public méthode

public SetZ ( string name, int z ) : bool
name string
z int
Résultat bool

ZacksGetRegionByName() public méthode

public ZacksGetRegionByName ( String name ) : Region
name String
Résultat Region

resizeRegion() public méthode

public resizeRegion ( string regionName, int addAmount, int direction ) : bool
regionName string
addAmount int
direction int
Résultat bool

Property Details

Regions public_oe property

public List Regions
Résultat List