C# Class Regions.RegionManager

Show file Open project: NyxStudios/Regions

Public Properties

Property Type Description
Regions List

Public Methods

Method 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 method

public AddNewUser ( string regionName, String userName ) : bool
regionName string
userName String
return bool

AddRegion() public method

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
return bool

AllowGroup() public method

public AllowGroup ( string regionName, string groups ) : bool
regionName string
groups string
return bool

CanBuild() public method

public CanBuild ( int x, int y, TShockAPI.TSPlayer ply ) : bool
x int
y int
ply TShockAPI.TSPlayer
return bool

ChangeOwner() public method

public ChangeOwner ( string regionName, string newOwner ) : bool
regionName string
newOwner string
return bool

DeleteRegion() public method

public DeleteRegion ( string name ) : bool
name string
return bool

GetRegionByName() public method

public GetRegionByName ( String name ) : Region
name String
return Region

GetTopRegion() public method

public GetTopRegion ( List regions ) : Region
regions List
return Region

InArea() public method

public InArea ( int x, int y ) : bool
x int
y int
return bool

InAreaRegion() public method

public InAreaRegion ( int x, int y ) : List
x int
y int
return List

InAreaRegionName() public method

public InAreaRegionName ( int x, int y ) : List
x int
y int
return List

ListAllRegions() public method

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

ListIDs() public static method

public static ListIDs ( string MergedIDs ) : List
MergedIDs string
return List

RegionManager() public method

public RegionManager ( IDbConnection db ) : System
db IDbConnection
return System

ReloadAllRegions() public method

public ReloadAllRegions ( ) : void
return void

ReloadForUnitTest() public method

public ReloadForUnitTest ( String n ) : void
n String
return void

RemoveGroup() public method

public RemoveGroup ( string regionName, string group ) : bool
regionName string
group string
return bool

RemoveUser() public method

public RemoveUser ( string regionName, string userName ) : bool
regionName string
userName string
return bool

SetRegionState() public method

public SetRegionState ( string name, bool state ) : bool
name string
state bool
return bool

SetRegionStateTest() public method

public SetRegionStateTest ( string name, string world, bool state ) : bool
name string
world string
state bool
return bool

SetZ() public method

public SetZ ( string name, int z ) : bool
name string
z int
return bool

ZacksGetRegionByName() public method

public ZacksGetRegionByName ( String name ) : Region
name String
return Region

resizeRegion() public method

public resizeRegion ( string regionName, int addAmount, int direction ) : bool
regionName string
addAmount int
direction int
return bool

Property Details

Regions public property

public List Regions
return List