C# Class TShockAPI.DB.Region

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

Méthodes publiques

Méthode Description
HasPermissionToBuildInRegion ( TSPlayer ply ) : bool

Checks if a given player has permission to build in the region

InArea ( Rectangle point ) : bool

Checks if a given point is in the region's area

InArea ( int x, int y ) : bool

Checks if a given (x, y) coordinate is in the region's area

Region ( ) : System
Region ( int id, Rectangle region, string name, string owner, bool disablebuild, string RegionWorldIDz, int z ) : System
RemoveGroup ( string groupName ) : bool

Removes a group's access to the region

RemoveID ( int id ) : bool

Removes a user's access to the region

SetAllowedGroups ( String groups ) : void

Sets the group names which are allowed to use the region

SetAllowedIDs ( String ids ) : void

Sets the user IDs which are allowed to use the region

Method Details

HasPermissionToBuildInRegion() public méthode

Checks if a given player has permission to build in the region
public HasPermissionToBuildInRegion ( TSPlayer ply ) : bool
ply TSPlayer Player to check permissions with
Résultat bool

InArea() public méthode

Checks if a given point is in the region's area
public InArea ( Rectangle point ) : bool
point Rectangle Point to check
Résultat bool

InArea() public méthode

Checks if a given (x, y) coordinate is in the region's area
public InArea ( int x, int y ) : bool
x int X coordinate to check
y int Y coordinate to check
Résultat bool

Region() public méthode

public Region ( ) : System
Résultat System

Region() public méthode

public Region ( int id, Rectangle region, string name, string owner, bool disablebuild, string RegionWorldIDz, int z ) : System
id int
region Rectangle
name string
owner string
disablebuild bool
RegionWorldIDz string
z int
Résultat System

RemoveGroup() public méthode

Removes a group's access to the region
public RemoveGroup ( string groupName ) : bool
groupName string Group name to remove
Résultat bool

RemoveID() public méthode

Removes a user's access to the region
public RemoveID ( int id ) : bool
id int User ID to remove
Résultat bool

SetAllowedGroups() public méthode

Sets the group names which are allowed to use the region
public SetAllowedGroups ( String groups ) : void
groups String String of group names to set
Résultat void

SetAllowedIDs() public méthode

Sets the user IDs which are allowed to use the region
public SetAllowedIDs ( String ids ) : void
ids String String of IDs to set
Résultat void